mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-06-18 01:07:12 +02:00
fix: fix auto_monitor=True for MockPV by add add_callback = mock.MagicMock()
This commit is contained in:
@ -175,6 +175,9 @@ class MockPV:
|
||||
if callback is not None:
|
||||
callback(None, None, None)
|
||||
|
||||
def add_callback(self, callback=None, index=None, run_now=False, with_ctrlvars=True, **kw):
|
||||
return mock.MagicMock()
|
||||
|
||||
def get_with_metadata(
|
||||
self,
|
||||
count=None,
|
||||
|
Reference in New Issue
Block a user