Skip to content

Commit

Permalink
Add test that schema_name with underscores can be created. Refs #829
Browse files Browse the repository at this point in the history
according to the description in #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 May 2, 2023
1 parent 4a93305 commit f077995
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 f077995

Please sign in to comment.