From 816564be809eef5ebb6932ca7681e73a24334ba7 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Mon, 19 Sep 2022 08:35:08 +0200 Subject: [PATCH] move tests --- tests/test_django_project.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_django_project.py b/tests/test_django_project.py index 68e7bb4..82b6b4f 100644 --- a/tests/test_django_project.py +++ b/tests/test_django_project.py @@ -34,9 +34,6 @@ class DjangoYnhTestCase(HtmlAssertionMixin, TestCase): assert settings.ADMIN_EMAIL == 'foo-bar@test.tld' assert settings.DEFAULT_FROM_EMAIL == 'django_app@test.tld' - def test_urls(self): - assert reverse('admin:index') == '/app_path/' - def test_request_media_debug_view(self): assert reverse(request_media_debug_view) == '/app_path/debug/' @@ -60,6 +57,9 @@ class DjangoYnhTestCase(HtmlAssertionMixin, TestCase): ) def test_auth(self): + assert settings.PATH_URL == 'app_path' + assert reverse('admin:index') == '/app_path/' + # SecurityMiddleware should redirects all non-HTTPS requests to HTTPS: assert settings.SECURE_SSL_REDIRECT is True response = self.client.get('/app_path/', secure=False)