Skip to content

Commit

Permalink
Fixed invoke tests exiting early even when tests pass. (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnider2195 authored Oct 22, 2024
1 parent 7683e3a commit f20c398
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nautobot-app/{{ cookiecutter.project_slug }}/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,8 @@ def pylint(context):
else:
print("No migrations directory found, skipping migrations checks.")

raise Exit(code=exit_code)
if exit_code != 0:
raise Exit(code=exit_code)


@task(aliases=("a",))
Expand Down Expand Up @@ -780,7 +781,8 @@ def ruff(context, action=None, target=None, fix=False, output_format="concise"):
if not run_command(context, command, warn=True):
exit_code = 1

raise Exit(code=exit_code)
if exit_code != 0:
raise Exit(code=exit_code)


@task
Expand Down

0 comments on commit f20c398

Please sign in to comment.