This commit is contained in:
2026-03-05 17:13:59 -05:00
parent d4923c5198
commit fd36aad539
11 changed files with 48 additions and 48 deletions

View File

@@ -70,7 +70,7 @@ class TestMMAApprovalIndicators:
_pending_ask_dialog=False,
)
imgui_mock = _make_imgui_mock()
with patch("gui_2.imgui", imgui_mock):
with patch("src.gui_2.imgui", imgui_mock):
App._render_mma_dashboard(app)
combined = _collect_text_colored_args(imgui_mock)
assert "APPROVAL PENDING" not in combined, (
@@ -81,7 +81,7 @@ class TestMMAApprovalIndicators:
"""'APPROVAL PENDING' badge must appear when _pending_mma_spawn is set."""
app = _make_app(_pending_mma_spawn={"ticket_id": "T-001"})
imgui_mock = _make_imgui_mock()
with patch("gui_2.imgui", imgui_mock), patch("gui_2.math") as mock_math:
with patch("src.gui_2.imgui", imgui_mock), patch("src.gui_2.math") as mock_math:
mock_math.sin.return_value = 0.8
App._render_mma_dashboard(app)
combined = _collect_text_colored_args(imgui_mock)
@@ -93,7 +93,7 @@ class TestMMAApprovalIndicators:
"""'APPROVAL PENDING' badge must appear when _pending_mma_approval is set."""
app = _make_app(_pending_mma_approval={"step": "test"})
imgui_mock = _make_imgui_mock()
with patch("gui_2.imgui", imgui_mock), patch("gui_2.math") as mock_math:
with patch("src.gui_2.imgui", imgui_mock), patch("src.gui_2.math") as mock_math:
mock_math.sin.return_value = 0.8
App._render_mma_dashboard(app)
combined = _collect_text_colored_args(imgui_mock)
@@ -105,7 +105,7 @@ class TestMMAApprovalIndicators:
"""'APPROVAL PENDING' badge must appear when _pending_ask_dialog is True."""
app = _make_app(_pending_ask_dialog=True)
imgui_mock = _make_imgui_mock()
with patch("gui_2.imgui", imgui_mock), patch("gui_2.math") as mock_math:
with patch("src.gui_2.imgui", imgui_mock), patch("src.gui_2.math") as mock_math:
mock_math.sin.return_value = 0.8
App._render_mma_dashboard(app)
combined = _collect_text_colored_args(imgui_mock)