Opened 7 years ago

Closed 6 years ago

Last modified 5 years ago

#12619 closed (fixed)

django-admin's testserver doesn't support --noinput

Reported by: Wil Clouser Owned by: nobody
Component: Core (Management commands) Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I'm trying to run the testserver in a script without user input, but apparently --noinput isn't supported for the testserver subcommand.

Steps to reproduce:

django-admin.py testserver --noinput

Actual Results:

/django-admin.py: error: no such option: --noinput

Expected Results:

Run the testserver with reasonable default answers to questions.

Attachments (1)

testserver_noinput.patch (1.7 KB) - added by Rolando Espinoza La fuente 6 years ago.
adds --noinput option to testserver command and updates docs

Download all attachments as: .zip

Change History (6)

comment:1 Changed 7 years ago by Russell Keith-Magee

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

comment:2 Changed 6 years ago by anonymous

Is there a work-around for this? I can't figure out how to implement automated testing with selenium without this option.

Changed 6 years ago by Rolando Espinoza La fuente

Attachment: testserver_noinput.patch added

adds --noinput option to testserver command and updates docs

comment:3 Changed 6 years ago by Russell Keith-Magee

Has patch: set
milestone: 1.3
Triage Stage: AcceptedReady for checkin

Patch looks good; we can apply this once the 1.3 branch opens for development.

comment:4 Changed 6 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [13365]) Fixed #12619 -- Added support for the --noinput flag to testserver. Thanks to clouserw for the suggestion, and darkrho for the patch.

comment:5 Changed 5 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

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