fix(tests): give leye_out shutter test a csaxs and client stub
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:
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user