diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-01-30 15:01:25 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-07-01 18:02:28 +0200 |
commit | 6567523c3ad53fee87688fff44b9f0c7afe44387 (patch) | |
tree | 2f54c52ee0dcb3850c1e99a29e35170ffadd1e59 /example_project | |
parent | 3b2312b56cbb9f316bb09fe53246285fa54e5a17 (diff) | |
download | Ishtar-6567523c3ad53fee87688fff44b9f0c7afe44387.tar.bz2 Ishtar-6567523c3ad53fee87688fff44b9f0c7afe44387.zip |
Exclude some test for setup.py
Diffstat (limited to 'example_project')
-rw-r--r-- | example_project/local_settings.py.setup | 10 | ||||
-rw-r--r-- | example_project/runtests.py | 5 |
2 files changed, 9 insertions, 6 deletions
diff --git a/example_project/local_settings.py.setup b/example_project/local_settings.py.setup index 54dc99c4a..f3cf92a39 100644 --- a/example_project/local_settings.py.setup +++ b/example_project/local_settings.py.setup @@ -1,11 +1,11 @@ DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', - 'NAME': 'ishtar-test', - 'USER': 'ishtar-test', - 'PASSWORD': 'ishtar-test', - 'HOST': '', - 'PORT': '5432', + 'NAME': 'ishtar-setup-test', + 'USER': 'ishtar-setup-test', + 'PASSWORD': 'ishtar-setup-test', + 'HOST': '127.0.0.1', + 'PORT': '', } } 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", |