|
Test / backend-test (pull_request) Has been cancelled
Details
Test / frontend-unit (pull_request) Has been cancelled
Details
Test / api-e2e (pull_request) Has been cancelled
Details
Test / frontend-e2e (pull_request) Has been cancelled
Details
U3 streaming refactor switched orchestrator from agent.execute() to agent.execute_stream() (async gen), but tests still mocked execute(). AsyncMock() returns a coroutine lacking __aiter__, causing: - 'async for' requires an object with __aiter__ method, got coroutine - RuntimeWarning: coroutine was never awaited Add shared helpers in tests/unit/experts/_helpers.py: - make_chat_stream_mock: async gen for gateway.chat_stream - make_execute_stream_mock: async gen yielding final_answer event - make_execute_stream_raising_mock: async gen that raises (for failure tests) Update 3 test files to use the helpers: - test_team_orchestrator.py: _make_mock_expert, _make_mock_pool, failure tests (phase_failed, all_phases_fail, fallback_uses_lead, phase_failure_marks_dependents), assertion updates (execute_stream instead of execute), synthesizer warning cleanup - test_pm_collaboration.py: _make_mock_expert, _make_mock_llm_gateway, collaboration/risk/rework assertions - test_board_orchestrator.py: _make_mock_gateway (warning cleanup) All 483 experts/ tests pass with 0 warnings. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _helpers.py | ||
| test_board_backtest.py | ||
| test_board_orchestrator.py | ||
| test_board_router.py | ||
| test_board_team.py | ||
| test_config.py | ||
| test_divergence_detection.py | ||
| test_expert.py | ||
| test_orchestrator_debate.py | ||
| test_phase_executor_streaming.py | ||
| test_plan.py | ||
| test_pm_collaboration.py | ||
| test_registry.py | ||
| test_router.py | ||
| test_team.py | ||
| test_team_intervention.py | ||
| test_team_orchestrator.py | ||