Skip to content

Commit

Permalink
fix(django): duplicate --failfast check (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nealium authored Oct 2, 2024
1 parent 72603df commit a2861ab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions neotest_python/django_unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a2861ab

Please sign in to comment.