Skip to content

Commit 2e54469

Browse files
committed
Use get_display_id in multicam test
Update tests/services/test_multicam_controller.py to import and use get_display_id instead of get_camera_id when accessing mfd.frames. This aligns the test with the frames dict keys (display IDs) and the updated multi_camera_controller API.
1 parent 760825f commit 2e54469

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/services/test_multicam_controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# from dlclivegui.config import CameraSettings
77
from dlclivegui.config import CameraSettings
8-
from dlclivegui.services.multi_camera_controller import MultiCameraController, get_camera_id
8+
from dlclivegui.services.multi_camera_controller import MultiCameraController, get_display_id
99

1010

1111
@pytest.mark.unit
@@ -60,7 +60,7 @@ def test_rotation_and_crop(qtbot, patch_factory):
6060
last_shape = {"shape": None}
6161

6262
def on_ready(mfd):
63-
f = mfd.frames.get(get_camera_id(cam))
63+
f = mfd.frames.get(get_display_id(cam))
6464
if f is not None:
6565
last_shape["shape"] = f.shape
6666

0 commit comments

Comments
 (0)