From df43f158b95c194657bce3868186155b19162ddd Mon Sep 17 00:00:00 2001 From: Ed_ Date: Fri, 5 Jun 2026 10:33:38 -0400 Subject: [PATCH] test(gui_phase4): patch markdown_helper imgui/imgui_md to avoid IM_ASSERT --- tests/test_gui_phase4.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_gui_phase4.py b/tests/test_gui_phase4.py index 6e313d09..d36c16dd 100644 --- a/tests/test_gui_phase4.py +++ b/tests/test_gui_phase4.py @@ -70,9 +70,12 @@ def test_delete_ticket_logic(mock_app: App): def test_track_discussion_toggle(mock_app: App): with ( - patch('src.gui_2.imgui') as mock_imgui, + patch('src.gui_2.imgui') as mock_imgui, patch('src.theme_2.imgui', new=mock_imgui), patch('src.imgui_scopes.imgui', new=mock_imgui), + patch('src.markdown_helper.imgui', new=mock_imgui), + patch('src.markdown_helper.imgui_md') as mock_imgui_md, + patch('src.gui_2.markdown_helper.imgui_md', new=mock_imgui_md), patch('src.gui_2.imscope') as mock_imscope, patch('src.gui_2.project_manager.load_track_history', return_value=["@2026-03-01 12:00:00\n[User]\nTrack Hello"]) as mock_load, patch('src.gui_2.project_manager.str_to_entry', side_effect=lambda s, roles: {"ts": "12:00", "role": "User", "content": s.split("\n")[-1]}),