Skip to content

Commit

Permalink
Fixup: Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
currycoder committed Jan 15, 2024
1 parent 49cf2e6 commit ecf49a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion mail/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import pytest
import os

import pytest


@pytest.fixture(autouse=True)
def celery_sync(settings):
settings.CELERY_TASK_ALWAYS_EAGER = True
3 changes: 1 addition & 2 deletions mail/tests/test_celery_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand All @@ -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")


0 comments on commit ecf49a1

Please sign in to comment.