From ecf49a10a2b2b1c26a49d39ef24ea7a197edbfe6 Mon Sep 17 00:00:00 2001 From: Brendan Smith Date: Mon, 15 Jan 2024 17:04:52 +0000 Subject: [PATCH] Fixup: Run black --- mail/tests/conftest.py | 4 +++- mail/tests/test_celery_tasks.py | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) 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") - -