Skip to content

Commit 662313a

Browse files
committed
Fix display tests
1 parent d44bf18 commit 662313a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/services/test_multicam_controller.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
_camera_start_priority,
1212
_trigger_role_from_settings,
1313
get_camera_id,
14+
get_display_id,
1415
)
1516

1617

@@ -256,7 +257,7 @@ def test_frame_ready_emits_frames_in_user_configured_order(qtbot, patch_factory)
256257
properties={"opencv": {"device_id": "cam-b"}},
257258
).apply_defaults()
258259

259-
expected_order = [get_camera_id(cam_a), get_camera_id(cam_b)]
260+
expected_order = [get_display_id(cam_a), get_display_id(cam_b)]
260261
seen_orders: list[list[str]] = []
261262

262263
def on_ready(mfd):
@@ -388,7 +389,7 @@ def _create(settings):
388389
mc.start([cam])
389390

390391
cam_id, msg = blocker.args
391-
assert cam_id == get_camera_id(cam)
392+
assert cam_id == get_display_id(cam)
392393
assert "Camera read timeout" in msg
393394

394395
# Cleanup if still running.

0 commit comments

Comments
 (0)