mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-11-09 11:04:03 +01:00
fix: logpanel fixture overwriting xread
This commit is contained in:
1 parent
acd35a2786
commit
3c7834b492
1 file changed
+2
-2
@@ -62,8 +62,8 @@ TEST_LOG_MESSAGES = [
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def log_panel(qtbot, mocked_client):
|
||||
mocked_client.connector.xread = lambda *_, **__: TEST_LOG_MESSAGES
|
||||
def log_panel(qtbot, mocked_client, monkeypatch):
|
||||
monkeypatch.setattr(mocked_client.connector, "xread", lambda *_, **__: TEST_LOG_MESSAGES)
|
||||
widget = LogPanel()
|
||||
qtbot.addWidget(widget)
|
||||
qtbot.waitExposed(widget)
|
||||
|
||||
Reference in new issue
Block a user