0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

tests: fix e2e tests for namespace refactoring

This commit is contained in:
2025-03-13 16:38:42 +01:00
committed by wyzula-jan
parent 0b00cd24fd
commit d211bd67ab
3 changed files with 5 additions and 4 deletions

View File

@ -345,8 +345,9 @@ class BECGuiClient(RPCBase):
rpc_client = RPCBase(gui_id=f"{self._gui_id}:window", parent=self)
return rpc_client._run_rpc("_dump")
def start(self):
return self._start_server()
def start(self, wait: bool = True) -> None:
"""Start the server and show the GUI window."""
return self._start_server(wait=wait)
def _do_show_all(self):
rpc_client = RPCBase(gui_id=f"{self._gui_id}:window", parent=self)

View File

@ -11,7 +11,7 @@ from bec_widgets.tests.utils import check_remote_data_size
@pytest.fixture
def connected_figure(connected_client_gui_obj):
gui = connected_client_gui_obj
dock = gui.bec.new("dock")
dock = gui.window_list[0].new("dock")
fig = dock.new(name="fig", widget="BECFigure")
return fig

View File

@ -5,7 +5,7 @@ from bec_widgets.cli.client import BECFigure, BECImageShow, BECMotorMap, BECWave
def test_rpc_register_list_connections(connected_client_gui_obj):
gui = connected_client_gui_obj
fig = gui.bec.new("fig").new(name="fig", widget="BECFigure")
fig = gui.window_list[0].new("fig").new(name="fig", widget="BECFigure")
plt = fig.plot(x_name="samx", y_name="bpm4i")
im = fig.image("eiger")