Skip to content

Commit

Permalink
tests: add loop arg
Browse files Browse the repository at this point in the history
* 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 3 required positional arguments: 'conn', 'session_id', and 'loop'
FAILED tests/test_app.py::test_app_beyond2lte - TypeError: Page.__init__() missing 1 required positional argument: 'loop'

Signed-off-by: SirRGB <[email protected]>
  • Loading branch information
SirRGB committed Dec 7, 2024
1 parent 6b5bd94 commit 3c89893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand All @@ -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")

Expand Down

0 comments on commit 3c89893

Please sign in to comment.