fix(tests): Fix remaining patch paths in test_mma_orchestration_gui
This commit is contained in:
@@ -8,5 +8,5 @@ active = "main"
|
|||||||
|
|
||||||
[discussions.main]
|
[discussions.main]
|
||||||
git_commit = ""
|
git_commit = ""
|
||||||
last_updated = "2026-03-05T17:16:56"
|
last_updated = "2026-03-05T17:26:48"
|
||||||
history = []
|
history = []
|
||||||
|
|||||||
@@ -32,13 +32,13 @@ def test_cb_plan_epic_launches_thread(app_instance: App) -> None:
|
|||||||
app_instance.active_project_path = "test_project.toml"
|
app_instance.active_project_path = "test_project.toml"
|
||||||
mock_tracks = [{"id": "track_1", "title": "Test Track"}]
|
mock_tracks = [{"id": "track_1", "title": "Test Track"}]
|
||||||
with (
|
with (
|
||||||
patch('orchestrator_pm.get_track_history_summary', return_value="History summary") as mock_get_history,
|
patch('src.orchestrator_pm.get_track_history_summary', return_value="History summary") as mock_get_history,
|
||||||
patch('orchestrator_pm.generate_tracks', return_value=mock_tracks) as mock_gen_tracks,
|
patch('src.orchestrator_pm.generate_tracks', return_value=mock_tracks) as mock_gen_tracks,
|
||||||
patch('aggregate.build_file_items', return_value=[])):
|
patch('src.aggregate.build_file_items', return_value=[])):
|
||||||
# We need to mock project_manager.flat_config and project_manager.load_project
|
# We need to mock project_manager.flat_config and project_manager.load_project
|
||||||
with (
|
with (
|
||||||
patch('project_manager.load_project', return_value={}),
|
patch('src.project_manager.load_project', return_value={}),
|
||||||
patch('project_manager.flat_config', return_value={})
|
patch('src.project_manager.flat_config', return_value={})
|
||||||
):
|
):
|
||||||
app_instance._cb_plan_epic()
|
app_instance._cb_plan_epic()
|
||||||
# Wait for the background thread to finish (it should be quick with mocks)
|
# Wait for the background thread to finish (it should be quick with mocks)
|
||||||
|
|||||||
Reference in New Issue
Block a user