diff options
| -rw-r--r-- | django/core/management/commands/test.py | 5 | ||||
| -rw-r--r-- | django/test/runner.py | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/django/core/management/commands/test.py b/django/core/management/commands/test.py index 2df6dbbecf..7452b3fc6a 100644 --- a/django/core/management/commands/test.py +++ b/django/core/management/commands/test.py @@ -41,11 +41,6 @@ class Command(BaseCommand): help="Tells Django to NOT prompt the user for input of any kind.", ) parser.add_argument( - "--failfast", - action="store_true", - help="Tells Django to stop running the test suite after first failed test.", - ) - parser.add_argument( "--testrunner", help="Tells Django to use specified test runner class instead of " "the one specified by the TEST_RUNNER setting.", diff --git a/django/test/runner.py b/django/test/runner.py index 8bb40a3413..27eb9613e9 100644 --- a/django/test/runner.py +++ b/django/test/runner.py @@ -707,6 +707,11 @@ class DiscoverRunner: @classmethod def add_arguments(cls, parser): parser.add_argument( + "--failfast", + action="store_true", + help="Stops the test suite after the first failure.", + ) + parser.add_argument( "-t", "--top-level-directory", dest="top_level", |
