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 536f0c2
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 @@ -59,6 +59,7 @@ def test_tenant_persists_from_async_task_to_thread(self):

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

# Set the tenant in task
async_to_sync(self.async_set_current_tenant)(account)
Expand All @@ -67,6 +68,7 @@ def test_tenant_persists_from_async_task_to_thread(self):

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

# Set the tenant in task
async_to_sync(self.async_set_current_tenant)(account)
Expand Down

0 comments on commit 536f0c2

Please sign in to comment.