diff options
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", |