update tests

This commit is contained in:
JensDiemer 2020-12-29 11:35:39 +01:00
parent 1ce4c3a96d
commit 3168e1733a
3 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ BASE_PATH = Path(__file__).parent
def main(): def main():
create_local_test( 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', destination=BASE_PATH / 'local_test',
runserver=True, runserver=True,
) )

View file

@ -16,7 +16,7 @@ BASE_PATH = Path(__file__).parent
def main(): def main():
run_pytest( 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', destination=BASE_PATH / 'local_test',
) )

View file

@ -25,7 +25,7 @@ class DjangoYnhTestCase(HtmlAssertionMixin, TestCase):
assert str(settings.FINAL_WWW_PATH).endswith('/local_test/var_www') 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 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): def test_urls(self):
assert reverse('admin:index') == '/app_path/' assert reverse('admin:index') == '/app_path/'