Commit 94234ee
committed
Fix Incorrect Mock Assertion in TestEvaluators for Python 3.12
This commit resolves an AttributeError in the test_ipyparallel_evaluator method of the TestEvaluators class. The error was caused by the use of a non-existent method called_once() on a mock object. The correct method, assert_called_once(), has been applied to ensure the proper assertion of the mocked method's call frequency. This change ensures the test aligns with the intended functionality and adheres to the correct usage of the unittest.mock library in Python.1 parent 19a1b4d commit 94234ee
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
0 commit comments