lint-fix
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
parent
0a15cf7452
commit
941b8a72aa
|
@ -13,6 +13,7 @@ HEADERS = {"Authorization": f"Bearer {TENANTS_API_KEY}"}
|
|||
|
||||
class TestSettingsAPI(TenantAPITestCase):
|
||||
"""Test settings API"""
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.tenant_1 = Tenant.objects.create(
|
||||
|
|
|
@ -10,9 +10,7 @@ class TenantAPITestCase(APITransactionTestCase):
|
|||
for db_name in self._databases_names(include_mirrors=False):
|
||||
connections[db_name].set_schema_to_public()
|
||||
with connections[db_name].cursor() as cursor:
|
||||
cursor.execute(
|
||||
"SELECT nspname FROM pg_catalog.pg_namespace WHERE nspname ~ 't_.*'"
|
||||
)
|
||||
cursor.execute("SELECT nspname FROM pg_catalog.pg_namespace WHERE nspname ~ 't_.*'")
|
||||
schemas = cursor.fetchall()
|
||||
for row in schemas:
|
||||
schema = row[0]
|
||||
|
|
Reference in a new issue