Skip to content

Commit

Permalink
Add test that schema_name with underscores can be created. Refs djang…
Browse files Browse the repository at this point in the history
…o-tenants#829

according to the description in django-tenants#829 Postgres will double quote
schema names which contain underscores. More precisely names which
contain underscores and a mixture of lower case and upper case letters
will be quoted!
  • Loading branch information
atodorov committed Apr 20, 2023
1 parent 4a93305 commit 3c6f86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_tenants/tests/test_tenants.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,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')
schema_names = ('test-hyphen', 'test@at', 'test`backtick', 'country_BD')

Client = get_tenant_model()
for schema_name in schema_names:
Expand Down

0 comments on commit 3c6f86b

Please sign in to comment.