Skip to content

'./manage test --liveserver=foo' fails in projects that use django-test-extras and Django 1.8 #11

Closed
@frankoid

Description

@frankoid

For example, in djemplate with Django==1.8.4 and django-test-extras==2.0.1:

(djemplate)francis@murr djemplate $ ./manage test --liveserver=localhost:8100-8999
Usage: /Users/francis/Code/Bright/python/djemplate/project/manage.py test [options] 

Discover and run tests in the specified modules or the current directory.

/Users/francis/Code/Bright/python/djemplate/project/manage.py: error: no such option: --liveserver
(djemplate)francis@murr djemplate $ 

I think that this is because django-test-extras relies on the built in test command's option_list and that was changed to an empty tuple when optparse was replaced by argparse in django/django@8568638

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions