mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 11:41:49 +02:00
test(vscode): popen call does not have to be the only one
This commit is contained in:
@ -37,7 +37,8 @@ def test_start_server(qtbot, mocked_client):
|
||||
|
||||
widget = VSCodeEditor(client=mocked_client)
|
||||
|
||||
mock_popen.assert_called_once_with(
|
||||
assert (
|
||||
mock.call(
|
||||
shlex.split(
|
||||
f"code serve-web --port {widget.port} --connection-token={widget.token} --accept-server-license-terms"
|
||||
),
|
||||
@ -46,6 +47,8 @@ def test_start_server(qtbot, mocked_client):
|
||||
stderr=subprocess.DEVNULL,
|
||||
preexec_fn=os.setsid,
|
||||
)
|
||||
in mock_popen.mock_calls
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
Reference in New Issue
Block a user