tenants: fix tests for current tenant

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-07-05 23:47:49 +02:00
parent d1c4818724
commit 24f95fdeaa
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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": "",
},
)