From 24f95fdeaa362b49ef4d76305416d3efb5f72d3f Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 5 Jul 2022 23:47:49 +0200 Subject: [PATCH] tenants: fix tests for current tenant Signed-off-by: Jens Langhammer --- authentik/policies/api/policies.py | 1 - authentik/tenants/tests.py | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/authentik/policies/api/policies.py b/authentik/policies/api/policies.py index 0ef0d9775..55bd29ddf 100644 --- a/authentik/policies/api/policies.py +++ b/authentik/policies/api/policies.py @@ -5,7 +5,6 @@ from drf_spectacular.utils import OpenApiResponse, extend_schema from guardian.shortcuts import get_objects_for_user from rest_framework import mixins from rest_framework.decorators import action -from rest_framework.exceptions import PermissionDenied from rest_framework.request import Request from rest_framework.response import Response from rest_framework.serializers import ModelSerializer, SerializerMethodField diff --git a/authentik/tenants/tests.py b/authentik/tenants/tests.py index c3c707d71..95e43e8d6 100644 --- a/authentik/tenants/tests.py +++ b/authentik/tenants/tests.py @@ -24,6 +24,7 @@ class TestTenants(APITestCase): "branding_title": "authentik", "matched_domain": tenant.domain, "ui_footer_links": CONFIG.y("footer_links"), + "default_locale": "", }, ) @@ -41,6 +42,7 @@ class TestTenants(APITestCase): "branding_title": "custom", "matched_domain": "bar.baz", "ui_footer_links": CONFIG.y("footer_links"), + "default_locale": "", }, ) @@ -55,6 +57,7 @@ class TestTenants(APITestCase): "branding_title": "authentik", "matched_domain": "fallback", "ui_footer_links": CONFIG.y("footer_links"), + "default_locale": "", }, )