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

test: register all widgets with qtbot and close them

This commit is contained in:
2024-07-28 13:03:34 +02:00
committed by wyzula_j
parent 7616ca0e14
commit 73cd11e472
10 changed files with 23 additions and 9 deletions

View File

@ -14,7 +14,9 @@ from .client_mocks import mocked_client
def vscode_widget(qtbot, mocked_client):
with mock.patch("bec_widgets.widgets.vscode.vscode.subprocess.Popen") as mock_popen:
widget = VSCodeEditor(client=mocked_client)
# qtbot.addWidget(widget)
yield widget
# widget.close()
def test_vscode_widget(qtbot, vscode_widget):