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):