flows: fix invalid parameter in tests

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-09-09 16:34:20 +02:00
parent d0898a3869
commit 5cf3a13ca8
1 changed files with 3 additions and 3 deletions

View File

@ -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)