From f0779959f2248de1dddbb6835c44f0b8a7884bea Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Wed, 19 Apr 2023 18:08:09 +0300 Subject: [PATCH] Add test that schema_name with underscores can be created. Refs #829 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! --- django_tenants/tests/test_tenants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_tenants/tests/test_tenants.py b/django_tenants/tests/test_tenants.py index 1316de8c..a55e354f 100644 --- a/django_tenants/tests/test_tenants.py +++ b/django_tenants/tests/test_tenants.py @@ -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: