Skip to content

Commit 20c7b08

Browse files
committed
fix tests with optional dashboard dep
1 parent 1343f8e commit 20c7b08

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/test_dashboard_commands.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ async def fake_close_stream_writer(writer):
9595
return None
9696

9797
monkeypatch.setattr("ezmsg.core.commands.start.subprocess.Popen", DummyPopen)
98+
monkeypatch.setattr(
99+
"ezmsg.core.commands.start.require_dashboard_dependency",
100+
lambda: object(),
101+
)
98102
monkeypatch.setattr(
99103
"ezmsg.core.commands.start.GraphService.open_connection", fake_open_connection
100104
)
@@ -133,6 +137,10 @@ async def fake_close_stream_writer(writer):
133137
return None
134138

135139
monkeypatch.setattr("ezmsg.core.commands.start.subprocess.Popen", DummyPopen)
140+
monkeypatch.setattr(
141+
"ezmsg.core.commands.start.require_dashboard_dependency",
142+
lambda: object(),
143+
)
136144
monkeypatch.setattr(
137145
"ezmsg.core.commands.start.GraphService.open_connection", fake_open_connection
138146
)

0 commit comments

Comments
 (0)