Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#12619 closed (fixed)

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

Reported by: clouserw 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 darkrho 5 years ago.
adds --noinput option to testserver command and updates docs

Download all attachments as: .zip

Change History (6)

comment:1 Changed 5 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 5 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 5 years ago by darkrho

adds --noinput option to testserver command and updates docs

comment:3 Changed 5 years ago by russellm

  • Has patch set
  • milestone set to 1.3
  • Triage Stage changed from Accepted to Ready for checkin

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

comment:4 Changed 5 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

(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 4 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

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