PYTHON
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user