[Django] #24571: "testserver" management command fails

324 views
Skip to first unread message

Django

unread,
Apr 2, 2015, 4:59:03 PM4/2/15
to django-...@googlegroups.com
#24571: "testserver" management command fails
--------------------------------------------+--------------------
Reporter: domasx2 | Owner: nobody
Type: Bug | Status: new
Component: Core (Management commands) | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------------+--------------------
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.

}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24571>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 2, 2015, 5:52:01 PM4/2/15
to django-...@googlegroups.com
#24571: "testserver" management command fails
-------------------------------------+-------------------------------------

Reporter: domasx2 | Owner: nobody
Type: Bug | Status: new
Component: Core (Management | Version: 1.8
commands) |
Severity: Release blocker | Resolution:
Keywords: testserver | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by claudep):

* severity: Normal => Release blocker
* needs_better_patch: => 0
* needs_tests: => 0
* keywords: => testserver
* needs_docs: => 0
* stage: Unreviewed => Accepted


Comment:

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

--
Ticket URL: <https://code.djangoproject.com/ticket/24571#comment:1>

Django

unread,
Apr 3, 2015, 5:20:20 AM4/3/15
to django-...@googlegroups.com
#24571: "testserver" management command fails
-------------------------------------+-------------------------------------
Reporter: domasx2 | Owner: claudep
Type: Bug | Status: assigned

Component: Core (Management | Version: 1.8
commands) |
Severity: Release blocker | Resolution:
Keywords: testserver | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by claudep):

* status: new => assigned
* owner: nobody => claudep


--
Ticket URL: <https://code.djangoproject.com/ticket/24571#comment:2>

Django

unread,
Apr 3, 2015, 5:48:38 AM4/3/15
to django-...@googlegroups.com
#24571: "testserver" management command fails
-------------------------------------+-------------------------------------
Reporter: domasx2 | Owner: claudep
Type: Bug | Status: assigned
Component: Core (Management | Version: 1.8
commands) |
Severity: Release blocker | Resolution:
Keywords: testserver | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by claudep):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/24571#comment:3>

Django

unread,
Apr 3, 2015, 7:25:21 AM4/3/15
to django-...@googlegroups.com
#24571: "testserver" management command fails
-------------------------------------+-------------------------------------
Reporter: domasx2 | Owner: claudep
Type: Bug | Status: assigned
Component: Core (Management | Version: 1.8
commands) |
Severity: Release blocker | Resolution:
Keywords: testserver | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/24571#comment:4>

Django

unread,
Apr 4, 2015, 4:48:02 AM4/4/15
to django-...@googlegroups.com
#24571: "testserver" management command fails
-------------------------------------+-------------------------------------
Reporter: domasx2 | Owner: claudep
Type: Bug | Status: closed

Component: Core (Management | Version: 1.8
commands) |
Severity: Release blocker | Resolution: fixed

Keywords: testserver | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz <claude@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"426b63ba04521b8eaffb129b7e4feca36eed8777" 426b63b]:
{{{
#!CommitTicketReference repository=""
revision="426b63ba04521b8eaffb129b7e4feca36eed8777"
Fixed #24571 -- Restored testserver positional arguments parsing

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

--
Ticket URL: <https://code.djangoproject.com/ticket/24571#comment:5>

Django

unread,
Apr 4, 2015, 4:49:19 AM4/4/15
to django-...@googlegroups.com
#24571: "testserver" management command fails
-------------------------------------+-------------------------------------
Reporter: domasx2 | Owner: claudep
Type: Bug | Status: closed
Component: Core (Management | Version: 1.8
commands) |
Severity: Release blocker | Resolution: fixed
Keywords: testserver | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Claude Paroz <claude@…>):

In [changeset:"7821f856a69b5027999890b1377aa04f24da2416" 7821f856]:
{{{
#!CommitTicketReference repository=""
revision="7821f856a69b5027999890b1377aa04f24da2416"
[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.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24571#comment:6>

Reply all
Reply to author
Forward
0 new messages