From 941b8a72aa9c9e0857f2dd9f454eed304daff9e6 Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Fri, 12 Jan 2024 03:56:55 +0100 Subject: [PATCH] lint-fix Signed-off-by: Marc 'risson' Schmitt --- authentik/tenants/tests/test_settings.py | 1 + authentik/tenants/tests/utils.py | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/authentik/tenants/tests/test_settings.py b/authentik/tenants/tests/test_settings.py index 32a4bbf7f..63eb09cbf 100644 --- a/authentik/tenants/tests/test_settings.py +++ b/authentik/tenants/tests/test_settings.py @@ -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( diff --git a/authentik/tenants/tests/utils.py b/authentik/tenants/tests/utils.py index 655c7605d..2ed547183 100644 --- a/authentik/tenants/tests/utils.py +++ b/authentik/tenants/tests/utils.py @@ -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]