flows: fix invalid parameter in tests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
d0898a3869
commit
5cf3a13ca8
|
@ -13,14 +13,14 @@ class TestViews(TestCase):
|
||||||
|
|
||||||
def setUp(self) -> None:
|
def setUp(self) -> None:
|
||||||
self.factory = RequestFactory()
|
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"""
|
"""Test a form"""
|
||||||
|
|
||||||
def tester(self: TestViews):
|
def tester(self: TestViews):
|
||||||
model_class = view(self.exec)
|
model_class = view_class(self.exec)
|
||||||
self.assertIsNotNone(model_class.post)
|
self.assertIsNotNone(model_class.post)
|
||||||
self.assertIsNotNone(model_class.get)
|
self.assertIsNotNone(model_class.get)
|
||||||
|
|
||||||
|
|
Reference in a new issue