*: fix tests for new field show_source_labels

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-10-31 18:18:21 +01:00
parent 8d995011b8
commit bfc8a56a0b
4 changed files with 7 additions and 0 deletions

View File

@ -545,6 +545,7 @@ class TestFlowExecutor(APITestCase):
"password_fields": False,
"primary_action": "Log in",
"sources": [],
"show_source_labels": False,
"user_fields": [UserFields.E_MAIL],
},
)

View File

@ -60,6 +60,7 @@ class TestFlowInspector(APITestCase):
"password_fields": False,
"primary_action": "Log in",
"sources": [],
"show_source_labels": False,
"user_fields": ["username"],
},
)

View File

@ -75,6 +75,7 @@ class AuthenticatorValidateStageTests(APITestCase):
},
"user_fields": ["username"],
"sources": [],
"show_source_labels": False,
},
)

View File

@ -123,6 +123,7 @@ class TestIdentificationStage(APITestCase):
"name": "test",
}
],
"show_source_labels": False,
"user_fields": ["email"],
},
)
@ -158,6 +159,7 @@ class TestIdentificationStage(APITestCase):
{"code": "invalid", "string": "Failed to " "authenticate."}
]
},
"show_source_labels": False,
"flow_info": {
"background": self.flow.background_url,
"cancel_url": reverse("authentik_flows:cancel"),
@ -218,6 +220,7 @@ class TestIdentificationStage(APITestCase):
"authentik_core:if-flow",
kwargs={"flow_slug": "unique-enrollment-string"},
),
"show_source_labels": False,
"primary_action": "Log in",
"flow_info": {
"background": flow.background_url,
@ -267,6 +270,7 @@ class TestIdentificationStage(APITestCase):
"authentik_core:if-flow",
kwargs={"flow_slug": "unique-recovery-string"},
),
"show_source_labels": False,
"primary_action": "Log in",
"flow_info": {
"background": flow.background_url,