fix scim tests

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
Marc 'risson' Schmitt 2024-01-03 12:12:26 +01:00
parent 764a999db8
commit a1ba5aa27f
No known key found for this signature in database
GPG Key ID: 9C3FA22FABF1AA8D
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ from authentik.lib.generators import generate_id
from authentik.providers.scim.clients.schema import ServiceProviderConfiguration
from authentik.providers.scim.models import SCIMMapping, SCIMProvider
from authentik.providers.scim.tasks import scim_sync
from authentik.tenants.models import Tenant
class SCIMMembershipTests(TestCase):
@ -22,6 +23,7 @@ class SCIMMembershipTests(TestCase):
# which will cause errors with multiple users
User.objects.all().exclude(pk=get_anonymous_user().pk).delete()
Group.objects.all().delete()
Tenant.objects.update(avatars="none")
@apply_blueprint("system/providers-scim.yaml")
def configure(self) -> None: