diff --git a/neotest_python/django_unittest.py b/neotest_python/django_unittest.py index 6ad9b07..fd19555 100644 --- a/neotest_python/django_unittest.py +++ b/neotest_python/django_unittest.py @@ -70,10 +70,11 @@ def __init__(self, **kwargs): def add_arguments(cls, parser): DiscoverRunner.add_arguments(parser) parser.add_argument("--verbosity", nargs="?", default=2) - parser.add_argument( - "--failfast", - action="store_true", - ) + if "failfast" not in parser.parse_args([]): + parser.add_argument( + "--failfast", + action="store_true", + ) # override def get_resultclass(self):