From 5cf3a13ca8f49a3c337b9116663a87b3b86ae495 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 9 Sep 2021 16:34:20 +0200 Subject: [PATCH] flows: fix invalid parameter in tests Signed-off-by: Jens Langhammer --- authentik/flows/tests/test_stage_views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/authentik/flows/tests/test_stage_views.py b/authentik/flows/tests/test_stage_views.py index 1b721fa65..b623f8ef5 100644 --- a/authentik/flows/tests/test_stage_views.py +++ b/authentik/flows/tests/test_stage_views.py @@ -13,14 +13,14 @@ class TestViews(TestCase): def setUp(self) -> None: self.factory = RequestFactory() - self.exec = FlowExecutorView(self.factory.request("/")) + self.exec = FlowExecutorView(request=self.factory.get("/")) -def view_tester_factory(view: Type[StageView]) -> Callable: +def view_tester_factory(view_class: Type[StageView]) -> Callable: """Test a form""" def tester(self: TestViews): - model_class = view(self.exec) + model_class = view_class(self.exec) self.assertIsNotNone(model_class.post) self.assertIsNotNone(model_class.get)