Skip to content

Commit

Permalink
remove broadcast_callback_on_shared
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Lefévère-Laoide authored and Fred Lefévère-Laoide committed Jun 24, 2024
1 parent 3561dc4 commit 6a5253d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/gui/gui_specific/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,6 @@ def test__get_user_instance(gui: Gui):
gui._get_user_instance("", type(None))


def test__call_broadcast_callback_on_shared(gui: Gui):
gui.run(run_server=False)
with gui.get_flask_app().app_context():
res = gui._call_broadcast_callback_on_shared(lambda s, t: t, ["Hello World"], "mine")
assert res == "Hello World"

with gui.get_flask_app().app_context():
with pytest.warns(UserWarning):
res = gui._call_broadcast_callback_on_shared(print, ["Hello World"], "mine")
assert res is None


def test__call_broadcast_callback(gui: Gui):
gui.run(run_server=False)

Expand Down

0 comments on commit 6a5253d

Please sign in to comment.