"testserver" management command fails
Hi,
After updating to 1.8 this command:
python3 manage.py testserver fixture.yaml
Fails:
Creating test database for alias 'default'...
Got an error creating the test database: database "test_django" already exists
Destroying old test database 'default'...
CommandError: Error: No database fixture specified. Please provide the path of at least one fixture in the command line.
Change History
(6)
Keywords: |
testserver added
|
Severity: |
Normal → Release blocker
|
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to Claude Paroz
|
Status: |
new → assigned
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Confirmed. I forgot to remove the
args
Command variable (which triggers an optparse compatibility mode).Fixing's easy, testing harder... (see
ManageRunserver
testcase class).