0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00
This commit is contained in:
2025-03-28 11:29:39 +01:00
committed by wyzula-jan
parent d7b4545795
commit 78365a5233
2 changed files with 3 additions and 4 deletions

View File

@ -71,7 +71,7 @@ def _get_output(process, logger) -> None:
def _start_plot_process(
gui_id: str, gui_class: type, gui_class_id: str, config: dict | str, logger=None
gui_id: str, gui_class_id: str, config: dict | str, gui_class: str = "launcher", logger=None
) -> tuple[subprocess.Popen[str], threading.Thread | None]:
"""
Start the plot in a new process.
@ -86,7 +86,7 @@ def _start_plot_process(
"--id",
gui_id,
"--gui_class",
"launcher",
gui_class,
"--gui_class_id",
gui_class_id,
"--hide",
@ -380,7 +380,6 @@ class BECGuiClient(RPCBase):
self._gui_started_event.clear()
self._process, self._process_output_processing_thread = _start_plot_process(
self._gui_id,
self.__class__,
gui_class_id=self._default_dock_name,
config=self._client._service_config.config, # pylint: disable=protected-access
logger=logger,

View File

@ -31,7 +31,7 @@ def test_rpc_call_new_dock(cli_dock_area):
)
def test_client_utils_start_plot_process(config, call_config):
with mock.patch("bec_widgets.cli.client_utils.subprocess.Popen") as mock_popen:
_start_plot_process("gui_id", BECDockArea, "bec", config)
_start_plot_process("gui_id", "bec", config, gui_class="BECDockArea")
command = [
"bec-gui-server",
"--id",