diff --git a/mail/tests/conftest.py b/mail/tests/conftest.py index e804cf5e..401e3125 100644 --- a/mail/tests/conftest.py +++ b/mail/tests/conftest.py @@ -1,6 +1,8 @@ -import pytest import os +import pytest + + @pytest.fixture(autouse=True) def celery_sync(settings): settings.CELERY_TASK_ALWAYS_EAGER = True diff --git a/mail/tests/test_celery_tasks.py b/mail/tests/test_celery_tasks.py index 7e36babe..d2b682b7 100644 --- a/mail/tests/test_celery_tasks.py +++ b/mail/tests/test_celery_tasks.py @@ -2,6 +2,7 @@ from mail.celery_tasks import get_lite_api_url + class GetLiteAPIUrlTests(TestCase): def test_get_url_with_no_path(self): with self.settings(LITE_API_URL="https://example.com"): @@ -20,5 +21,3 @@ def test_get_url_with_path_from_setting(self): result = get_lite_api_url() self.assertEqual(result, "https://example.com/foo") - -