From 6a5253db45ecfdabae4ff074f716091286399cb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fred=20Lef=C3=A9v=C3=A8re-Laoide?= Date: Mon, 24 Jun 2024 09:34:25 +0200 Subject: [PATCH] remove broadcast_callback_on_shared --- tests/gui/gui_specific/test_gui.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/gui/gui_specific/test_gui.py b/tests/gui/gui_specific/test_gui.py index 46654cdbfe..0be7a64cc2 100644 --- a/tests/gui/gui_specific/test_gui.py +++ b/tests/gui/gui_specific/test_gui.py @@ -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)