diff --git a/django_tenants/tests/test_tenants.py b/django_tenants/tests/test_tenants.py index 3867ff93..cfc47ace 100644 --- a/django_tenants/tests/test_tenants.py +++ b/django_tenants/tests/test_tenants.py @@ -164,7 +164,11 @@ def test_sync_tenant(self): self.created = [domain, tenant] def test_switching_search_path(self): - tenant1 = get_tenant_model()(schema_name='tenant1') + """ + IMPORTANT: using schema_name with underscore here. See + https://github.com/django-tenants/django-tenants/pull/829 + """ + tenant1 = get_tenant_model()(schema_name='tenant_1') tenant1.save() domain1 = get_tenant_domain_model()(tenant=tenant1, domain='something.test.com') @@ -172,7 +176,7 @@ def test_switching_search_path(self): connection.set_schema_to_public() - tenant2 = get_tenant_model()(schema_name='tenant2') + tenant2 = get_tenant_model()(schema_name='tenant_2') tenant2.save() domain2 = get_tenant_domain_model()(tenant=tenant2, domain='example.com')