diff --git a/authentik/flows/tests/test_views.py b/authentik/flows/tests/test_views.py index 40940196c..82dbda8c3 100644 --- a/authentik/flows/tests/test_views.py +++ b/authentik/flows/tests/test_views.py @@ -422,7 +422,7 @@ class TestFlowExecutor(TestCase): self.assertJSONEqual( force_str(response.content), { - "background": flow.background.url, + "background": flow.background_url, "type": ChallengeTypes.NATIVE.value, "component": "ak-stage-dummy", "title": binding.stage.name, @@ -453,7 +453,7 @@ class TestFlowExecutor(TestCase): self.assertJSONEqual( force_str(response.content), { - "background": flow.background.url, + "background": flow.background_url, "type": ChallengeTypes.NATIVE.value, "component": "ak-stage-dummy", "title": binding4.stage.name, diff --git a/authentik/stages/identification/tests.py b/authentik/stages/identification/tests.py index 315f7a32e..c0fa530f0 100644 --- a/authentik/stages/identification/tests.py +++ b/authentik/stages/identification/tests.py @@ -108,7 +108,7 @@ class TestIdentificationStage(TestCase): self.assertJSONEqual( force_str(response.content), { - "background": self.flow.background.url, + "background": self.flow.background_url, "type": ChallengeTypes.NATIVE.value, "component": "ak-stage-identification", "password_fields": True, @@ -181,7 +181,7 @@ class TestIdentificationStage(TestCase): self.assertJSONEqual( force_str(response.content), { - "background": flow.background.url, + "background": flow.background_url, "type": ChallengeTypes.NATIVE.value, "component": "ak-stage-identification", "user_fields": ["email"], @@ -229,7 +229,7 @@ class TestIdentificationStage(TestCase): self.assertJSONEqual( force_str(response.content), { - "background": flow.background.url, + "background": flow.background_url, "type": ChallengeTypes.NATIVE.value, "component": "ak-stage-identification", "user_fields": ["email"],