stages/identification: fix tests

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-30 10:15:27 +02:00
parent 3ee90712b2
commit eb8f52b870
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ LOGGER = get_logger()
class IdentificationChallenge(Challenge):
"""Identification challenges with all UI elements"""
user_fields = ListField(CharField(), allow_empty=True, allow_null=True)
user_fields = ListField(child=CharField(), allow_empty=True, allow_null=True)
application_pre = CharField(required=False)
enroll_url = CharField(required=False)

View File

@ -106,7 +106,7 @@ class TestIdentificationStage(TestCase):
"background": flow.background.url,
"type": ChallengeTypes.NATIVE.value,
"component": "ak-stage-identification",
"input_type": "email",
"user_fields": ["email"],
"enroll_url": reverse(
"authentik_core:if-flow",
kwargs={"flow_slug": "unique-enrollment-string"},
@ -149,7 +149,7 @@ class TestIdentificationStage(TestCase):
"background": flow.background.url,
"type": ChallengeTypes.NATIVE.value,
"component": "ak-stage-identification",
"input_type": "email",
"user_fields": ["email"],
"recovery_url": reverse(
"authentik_core:if-flow",
kwargs={"flow_slug": "unique-recovery-string"},