#24571 closed Bug (fixed)
"testserver" management command fails
Description ¶
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)
comment:1 by , 10 years ago
Keywords: | testserver added |
---|---|
Severity: | Normal → Release blocker |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 10 years ago
Has patch: | set |
---|
comment:4 by , 10 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
Confirmed. I forgot to remove the
args
Command variable (which triggers an optparse compatibility mode).Fixing's easy, testing harder... (see
ManageRunserver
testcase class).