fix(tests): give leye_out shutter test a csaxs and client stub
CI for csaxs_bec / test (push) Successful in 3m3s
CI for csaxs_bec / test (pull_request) Successful in 3m5s

leye_out() now reads self.csaxs and self.client (slit/filter handling), which
the bare LamNIOpticsMixin subclass in the test did not define.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
x12saandClaude Sonnet 5.5 committed 2026-09-29 12:56:07 +02:00
1 parent 9ff6ecbe53
commit dbf8fbea58
1 file changed
+9
@@ -187,7 +187,16 @@ def test_leye_out_closes_the_fast_shutter(monkeypatch):
monkeypatch.setattr(optics_mixin_module, "dev", FakeDev(), raising=False)
monkeypatch.setattr(optics_mixin_module, "umv", lambda *a: None, raising=False)
class FakeClient:
# no slit position stored before the eye went in -> nothing to restore
@staticmethod
def get_global_var(name):
return None
class Optics(LamNIOpticsMixin):
csaxs = None
client = FakeClient()
def loptics_in(self):
pass