Skip to content

Commit

Permalink
fix runner
Browse files Browse the repository at this point in the history
  • Loading branch information
knifecake committed Dec 20, 2024
1 parent 256be94 commit bedaf5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
if __name__ == "__main__":
os.environ["DJANGO_SETTINGS_MODULE"] = "tests.settings"
django.setup()
shutil.rmtree(
settings.MEDIA_ROOT,
)
TestRunner = get_runner(settings)
test_runner = TestRunner()

test_labels = sys.argv[1:] or ["tests"]
failures = test_runner.run_tests(test_labels)

# clear tmp dir
shutil.rmtree(
settings.MEDIA_ROOT,
)
os.makedirs(settings.MEDIA_ROOT, exist_ok=True)

sys.exit(bool(failures))

0 comments on commit bedaf5e

Please sign in to comment.