From 1712edf01b30663d1d30cf0f9d43c9b6e2e868a1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 30 Jan 2020 15:01:25 +0100 Subject: Exclude some test for setup.py --- example_project/runtests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'example_project/runtests.py') diff --git a/example_project/runtests.py b/example_project/runtests.py index c10a73db4..c518429e9 100644 --- a/example_project/runtests.py +++ b/example_project/runtests.py @@ -17,12 +17,15 @@ if not os.path.exists(local_settings): import django from django.test.utils import get_runner from django.conf import settings +from django.core.management import call_command def runtests(): django.setup() + call_command('collectstatic', interactive=False, verbosity=0) TestRunner = get_runner(settings) - test_runner = TestRunner(verbosity=1, interactive=True) + test_runner = TestRunner(verbosity=1, interactive=True, + exclude_tags=["not-setup-py"]) failures = test_runner.run_tests( ["ishtar_common.tests", "archaeological_files.tests", -- cgit v1.2.3