From 38abf2312fd15bb2ad9b9b8d09ed6f369f651e23 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Fri, 5 Jun 2026 10:25:25 -0400 Subject: [PATCH] test(gui_progress): adapt to C_LBL/C_VAL function API + theme_2 mock --- tests/test_gui_progress.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tests/test_gui_progress.py b/tests/test_gui_progress.py index 56592e29..104351c6 100644 --- a/tests/test_gui_progress.py +++ b/tests/test_gui_progress.py @@ -24,6 +24,7 @@ def test_render_mma_dashboard_progress(): # Patch where it is actually used with patch('src.gui_2.imgui', mock_imgui), \ patch('src.imgui_scopes.imgui', new=mock_imgui), \ + patch('src.theme_2.imgui', new=mock_imgui), \ patch('src.gui_2.cost_tracker.estimate_cost', return_value=0.0): # Mock App instance - no spec because of delegation @@ -77,11 +78,11 @@ def test_render_mma_dashboard_progress(): mock_imgui.progress_bar.assert_any_call(0.25, (-1.0, 0.0), "25.0%") # Verify status breakdown counts are asserted via imgui.text_colored calls - mock_imgui.text_colored.assert_any_call(C_LBL, "Completed:") - mock_imgui.text_colored.assert_any_call(C_VAL, "1") - mock_imgui.text_colored.assert_any_call(C_LBL, "In Progress:") - mock_imgui.text_colored.assert_any_call(C_VAL, "1") - mock_imgui.text_colored.assert_any_call(C_LBL, "Blocked:") - mock_imgui.text_colored.assert_any_call(C_VAL, "1") - mock_imgui.text_colored.assert_any_call(C_LBL, "Todo:") - mock_imgui.text_colored.assert_any_call(C_VAL, "1") + mock_imgui.text_colored.assert_any_call(C_LBL(), "Completed:") + mock_imgui.text_colored.assert_any_call(C_VAL(), "1") + mock_imgui.text_colored.assert_any_call(C_LBL(), "In Progress:") + mock_imgui.text_colored.assert_any_call(C_VAL(), "1") + mock_imgui.text_colored.assert_any_call(C_LBL(), "Blocked:") + mock_imgui.text_colored.assert_any_call(C_VAL(), "1") + mock_imgui.text_colored.assert_any_call(C_LBL(), "Todo:") + mock_imgui.text_colored.assert_any_call(C_VAL(), "1")