Skip to content

Commit

Permalink
try fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ekampf committed Dec 15, 2023
1 parent e23a76e commit 42cef30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django_multitenant/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def test_tenant_persists_from_async_task_to_thread(self):
account = projects[0].account

with self.settings(TENANT_USE_ASGIREF=True):
importlib.reload(sys.modules["django_multitenant.settings"])
importlib.reload(sys.modules["django_multitenant.utils"])

# Set the tenant in task
Expand All @@ -66,6 +67,7 @@ def test_tenant_persists_from_async_task_to_thread(self):
unset_current_tenant()

with self.settings(TENANT_USE_ASGIREF=False):
importlib.reload(sys.modules["django_multitenant.settings"])
importlib.reload(sys.modules["django_multitenant.utils"])

# Set the tenant in task
Expand Down

0 comments on commit 42cef30

Please sign in to comment.