0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 11:41:49 +02:00

fix: do not display error popup if command is executed via RPC

This commit is contained in:
2024-12-20 13:13:05 +01:00
committed by wakonig_k
parent c405421db9
commit 52c5286d64
3 changed files with 51 additions and 15 deletions

View File

@ -349,3 +349,12 @@ def test_rpc_gui_obj(connected_client_gui_obj, qtbot):
# check it is really deleted on server
gui_info = gui._dump()
assert yw._gui_id not in gui_info
def test_rpc_call_with_exception_in_safeslot_error_popup(connected_client_gui_obj, qtbot):
gui = connected_client_gui_obj
gui.main.add_dock("test")
with pytest.raises(ValueError):
gui.main.add_dock("test")
# time.sleep(0.1)