From 3e4ace8928e88250cb0429e475ac477446ad0e44 Mon Sep 17 00:00:00 2001 From: SirRGB Date: Sat, 7 Dec 2024 20:32:29 +0100 Subject: [PATCH] tests: add loop arg * fixes the following error when running 'make test' * dont ask me why it works FAILED tests/test_app.py::test_app_sargo - TypeError: Page.__init__() missing 1 required positional argument: 'loop' FAILED tests/test_app.py::test_app_beyond2lte - TypeError: Page.__init__() missing 1 required positional argument: 'loop' Signed-off-by: SirRGB --- tests/test_app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_app.py b/tests/test_app.py index 69754eb4..09c4b40c 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -32,7 +32,7 @@ def send_commands(self, command, other): def test_app_sargo(): - page = ft.Page(conn=MockConn(), session_id=1) + page = ft.Page(conn=MockConn(), session_id=1, loop=1) # test if it would start up main(page=page, test=True, test_config="sargo") @@ -52,7 +52,7 @@ def test_app_sargo(): def test_app_beyond2lte(): - page = ft.Page(conn=MockConn(), session_id=1) + page = ft.Page(conn=MockConn(), session_id=1, loop=1) # test if it would start up main(page=page, test=True, test_config="beyond2lte")