From 3168e1733ad091f7c0f927a0e20ece9e547cd16a Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Tue, 29 Dec 2020 11:35:39 +0100 Subject: [PATCH] update tests --- local_test.py | 2 +- run_pytest.py | 2 +- tests/test_django_ynh.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/local_test.py b/local_test.py index 6be93c7..d1a1dc9 100644 --- a/local_test.py +++ b/local_test.py @@ -21,7 +21,7 @@ BASE_PATH = Path(__file__).parent def main(): create_local_test( - django_settings_path=BASE_PATH / 'conf' / 'django_ynh_demo_settings.py', + django_settings_path=BASE_PATH / 'conf' / 'settings.py', destination=BASE_PATH / 'local_test', runserver=True, ) diff --git a/run_pytest.py b/run_pytest.py index ecc1ab2..a398526 100644 --- a/run_pytest.py +++ b/run_pytest.py @@ -16,7 +16,7 @@ BASE_PATH = Path(__file__).parent def main(): run_pytest( - django_settings_path=BASE_PATH / 'conf' / 'django_ynh_demo_settings.py', + django_settings_path=BASE_PATH / 'conf' / 'settings.py', destination=BASE_PATH / 'local_test', ) diff --git a/tests/test_django_ynh.py b/tests/test_django_ynh.py index 18c48fb..aefe636 100644 --- a/tests/test_django_ynh.py +++ b/tests/test_django_ynh.py @@ -25,7 +25,7 @@ class DjangoYnhTestCase(HtmlAssertionMixin, TestCase): assert str(settings.FINAL_WWW_PATH).endswith('/local_test/var_www') assert str(settings.LOG_FILE).endswith('/local_test/var_log_django_ynh.log') - assert settings.ROOT_URLCONF == 'django_ynh_demo_urls' + assert settings.ROOT_URLCONF == 'urls' def test_urls(self): assert reverse('admin:index') == '/app_path/'