From bfc8a56a0ba4c57bdbf79f9fde59e8d7ca1814b9 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 31 Oct 2021 18:18:21 +0100 Subject: [PATCH] *: fix tests for new field show_source_labels Signed-off-by: Jens Langhammer --- authentik/flows/tests/test_executor.py | 1 + authentik/flows/tests/test_inspector.py | 1 + authentik/stages/authenticator_validate/tests.py | 1 + authentik/stages/identification/tests.py | 4 ++++ 4 files changed, 7 insertions(+) diff --git a/authentik/flows/tests/test_executor.py b/authentik/flows/tests/test_executor.py index 913915883..968eb163a 100644 --- a/authentik/flows/tests/test_executor.py +++ b/authentik/flows/tests/test_executor.py @@ -545,6 +545,7 @@ class TestFlowExecutor(APITestCase): "password_fields": False, "primary_action": "Log in", "sources": [], + "show_source_labels": False, "user_fields": [UserFields.E_MAIL], }, ) diff --git a/authentik/flows/tests/test_inspector.py b/authentik/flows/tests/test_inspector.py index e54490ea4..febec1560 100644 --- a/authentik/flows/tests/test_inspector.py +++ b/authentik/flows/tests/test_inspector.py @@ -60,6 +60,7 @@ class TestFlowInspector(APITestCase): "password_fields": False, "primary_action": "Log in", "sources": [], + "show_source_labels": False, "user_fields": ["username"], }, ) diff --git a/authentik/stages/authenticator_validate/tests.py b/authentik/stages/authenticator_validate/tests.py index 3f6f24c76..a215aca4a 100644 --- a/authentik/stages/authenticator_validate/tests.py +++ b/authentik/stages/authenticator_validate/tests.py @@ -75,6 +75,7 @@ class AuthenticatorValidateStageTests(APITestCase): }, "user_fields": ["username"], "sources": [], + "show_source_labels": False, }, ) diff --git a/authentik/stages/identification/tests.py b/authentik/stages/identification/tests.py index 085fb81c9..f85ebca78 100644 --- a/authentik/stages/identification/tests.py +++ b/authentik/stages/identification/tests.py @@ -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,