Skip to content

Commit

Permalink
Another try at appropriate test data
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Apr 19, 2023
1 parent 89b87cf commit 7d7be04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django_tenants/tests/test_tenants.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,15 +168,15 @@ def test_switching_search_path(self):
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 = get_tenant_model()(schema_name='tenant`1')
tenant1.save()

domain1 = get_tenant_domain_model()(tenant=tenant1, domain='something.test.com')
domain1.save()

connection.set_schema_to_public()

tenant2 = get_tenant_model()(schema_name='tenant_2')
tenant2 = get_tenant_model()(schema_name='tenant-2')
tenant2.save()

domain2 = get_tenant_domain_model()(tenant=tenant2, domain='example.com')
Expand Down Expand Up @@ -315,7 +315,7 @@ def test_tenant_schema_creation_with_only_numbers_name(self):
def test_tenant_schema_creation_with_special_chars(self):
"""Tests using special characters in schema name."""
schema_names = ('test-hyphen', 'test@at', 'test`backtick',
'will_be_double_quoted_by_postgres_bc_of_underscores',
'country_BD',
)

Client = get_tenant_model()
Expand Down

0 comments on commit 7d7be04

Please sign in to comment.