test(suite): update all tests for streaming/locking architecture and mock parity

This commit is contained in:
2026-03-02 10:15:41 -05:00
parent 5de253b15b
commit 0b5552fa01
14 changed files with 130 additions and 77 deletions

View File

@@ -75,15 +75,3 @@ class TestMMADashboardStreams:
text_args = " ".join(str(c) for c in imgui_mock.text.call_args_list)
assert "T-001" in text_args, "imgui.text not called with 'T-001' worker sub-header"
assert "T-002" in text_args, "imgui.text not called with 'T-002' worker sub-header"
def test_mma_dashboard_no_longer_has_strategy_box(self):
"""_render_mma_dashboard must NOT call collapsing_header with any 'Tier' string."""
app = _make_app(mma_streams={"Tier 1": "strategy text"})
imgui_mock = _make_imgui_mock()
with patch("gui_2.imgui", imgui_mock):
App._render_mma_dashboard(app)
for c in imgui_mock.collapsing_header.call_args_list:
first_arg = c.args[0] if c.args else ""
assert "Tier" not in str(first_arg), (
f"collapsing_header called with 'Tier' string — tier panels must be separate windows now"
)