fix: fix auto_monitor=True for MockPV by add add_callback = mock.MagicMock()

This commit is contained in:
appel_c 2023-11-21 12:32:27 +01:00
parent 16022c53ef
commit e7f7f9d665

View File

@ -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,