tenants: fix tests for current tenant
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
d1c4818724
commit
24f95fdeaa
|
@ -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
|
||||
|
|
|
@ -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": "",
|
||||
},
|
||||
)
|
||||
|
||||
|
|
Reference in New Issue