We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f86e2ce commit da78af9Copy full SHA for da78af9
tests/test_checkpoint_resume.py
@@ -308,8 +308,13 @@ async def run_test():
308
)
309
310
# Mock the parallel controller to avoid API calls
311
- with patch.object(controller, "parallel_controller") as mock_parallel:
+ with patch("openevolve.controller.ProcessParallelController") as mock_parallel_class:
312
+ mock_parallel = MagicMock()
313
mock_parallel.run_evolution = AsyncMock(return_value=None)
314
+ mock_parallel.start = MagicMock()
315
+ mock_parallel.stop = MagicMock()
316
+ mock_parallel.shutdown_event.is_set.return_value = False
317
+ mock_parallel_class.return_value = mock_parallel
318
319
# Run first time
320
result1 = await controller.run(iterations=0)
0 commit comments