Opened 3 years ago

Closed 3 years ago

Last modified 3 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 Changed 3 years ago by Claude Paroz

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 Changed 3 years ago by Claude Paroz

Owner: changed from nobody to Claude Paroz
Status: newassigned

comment:3 Changed 3 years ago by Claude Paroz

Has patch: set

comment:4 Changed 3 years ago by Tim Graham

Triage Stage: AcceptedReady for checkin

comment:5 Changed 3 years ago by Claude Paroz <claude@…>

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 Changed 3 years ago by Claude Paroz <claude@…>

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