mirror of
https://github.com/bec-project/ophyd_devices.git
synced 2025-06-25 04:01:09 +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:
|
if callback is not None:
|
||||||
callback(None, None, 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(
|
def get_with_metadata(
|
||||||
self,
|
self,
|
||||||
count=None,
|
count=None,
|
||||||
|
Reference in New Issue
Block a user