From e7f7f9d6658a27ca98ac17ffb998efae51ec3497 Mon Sep 17 00:00:00 2001 From: appel_c Date: Tue, 21 Nov 2023 12:32:27 +0100 Subject: [PATCH] fix: fix auto_monitor=True for MockPV by add add_callback = mock.MagicMock() --- tests/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/utils.py b/tests/utils.py index f73f661..aa13c4e 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -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,