From f5fa0ee15e2b8e7ea87563f01f92a28900178ef8 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Sun, 3 Aug 2025 20:06:24 +0200 Subject: [PATCH] Update tests/test_utils_hastyepics.py --- tests/test_utils_hastyepics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_utils_hastyepics.py b/tests/test_utils_hastyepics.py index 8d040eaf7..00317def3 100644 --- a/tests/test_utils_hastyepics.py +++ b/tests/test_utils_hastyepics.py @@ -15,8 +15,8 @@ def test_motor_instantiation_fast_vs_epics(): slow_times = [] # Mock to simulate a real EPICS moteur - with patch('epics.Motor.get') as mock_get, \ - patch('epics.Motor.RTYP', new_callable=PropertyMock) as mock_rtyp: + with patch('epics.Motor.get') as mock_get: + mock_get.return_value = 'motor' # Mean of 10 runs for _ in range(10):