chore(tests): Final stabilization of test suite and full isolation of live_gui artifacts

This commit is contained in:
2026-03-04 01:05:56 -05:00
parent 966b5c3d03
commit 1be6193ee0
18 changed files with 7352 additions and 152 deletions

View File

@@ -83,12 +83,17 @@ def test_delete_ticket_logic(mock_app: App):
mock_draw_list = MagicMock()
mock_imgui.get_window_draw_list.return_value = mock_draw_list
mock_draw_list.add_rect_filled = MagicMock()
class DummyPos:
x = 0
y = 0
mock_imgui.get_cursor_screen_pos.return_value = DummyPos()
# Mock ImVec2/ImVec4 types if vec4 creates real ones
mock_imgui.ImVec2 = MagicMock
mock_imgui.ImVec4 = MagicMock
mock_imgui.ImVec4 = MagicMock
with patch.object(mock_app, '_push_mma_state_update') as mock_push:
with patch('gui_2.C_LBL', MagicMock()), patch.object(mock_app, '_push_mma_state_update') as mock_push:
# Render T-001
mock_app._render_ticket_dag_node(mock_app.active_tickets[0], tickets_by_id, children_map, rendered)