From 0051130b7444727f7a34fade2646cc4c812bc645 Mon Sep 17 00:00:00 2001 From: x12sa Date: Wed, 14 Oct 2026 12:25:14 +0200 Subject: [PATCH] test(lamni): FakeDev supports "in" checks for fttrz/dttrz in leye_out test leye_out() checks "fttrz"/"dttrz" in dev since 5d838f9; the fake device container in test_leye_out_closes_the_fast_shutter didn't support that. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LJWYXx4SS8NgFWog81xjyf --- tests/tests_bec_ipython_client/test_lamni_golive_fixes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/tests_bec_ipython_client/test_lamni_golive_fixes.py b/tests/tests_bec_ipython_client/test_lamni_golive_fixes.py index 44c5064e..936a0dca 100644 --- a/tests/tests_bec_ipython_client/test_lamni_golive_fixes.py +++ b/tests/tests_bec_ipython_client/test_lamni_golive_fixes.py @@ -183,6 +183,11 @@ def test_leye_out_closes_the_fast_shutter(monkeypatch): fsh = FakeShutter() leyey = object() lsamrot = object() + fttrz = object() + dttrz = object() + + def __contains__(self, name): + return hasattr(self, name) monkeypatch.setattr(optics_mixin_module, "dev", FakeDev(), raising=False) monkeypatch.setattr(optics_mixin_module, "umv", lambda *a: None, raising=False)