Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#24571 closed Bug (fixed)

"testserver" management command fails

Reported by: Domas Owned by: Claude Paroz
Component: Core (Management commands) Version: 1.8
Severity: Release blocker Keywords: testserver
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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 Claude Paroz, 9 years ago

Keywords: testserver added
Severity: NormalRelease blocker
Triage Stage: UnreviewedAccepted

Confirmed. I forgot to remove the args Command variable (which triggers an optparse compatibility mode).
Fixing's easy, testing harder... (see ManageRunserver testcase class).

comment:2 by Claude Paroz, 9 years ago

Owner: changed from nobody to Claude Paroz
Status: newassigned

comment:3 by Claude Paroz, 9 years ago

Has patch: set

comment:4 by Tim Graham, 9 years ago

Triage Stage: AcceptedReady for checkin

comment:5 by Claude Paroz <claude@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In 426b63b:

Fixed #24571 -- Restored testserver positional arguments parsing

Thanks Domas Lapinskas for the report and Tim Graham for the
review.

comment:6 by Claude Paroz <claude@…>, 9 years ago

In 7821f856:

[1.8.x] Fixed #24571 -- Restored testserver positional arguments parsing

Thanks Domas Lapinskas for the report and Tim Graham for the
review.
Backport of 426b63ba04 from master.

Note: See TracTickets for help on using tickets.
Back to Top