PYTHON
This commit is contained in:
@@ -56,7 +56,7 @@ class TestMMADashboardStreams:
|
||||
app = _make_app(mma_streams={"Tier 1": "hello"})
|
||||
imgui_mock = _make_imgui_mock()
|
||||
imgui_mock.begin_child.return_value = True
|
||||
with patch("gui_2.imgui", imgui_mock):
|
||||
with patch("src.gui_2.imgui", imgui_mock):
|
||||
App._render_tier_stream_panel(app, "Tier 1", "Tier 1")
|
||||
text_wrapped_args = " ".join(str(c) for c in imgui_mock.text_wrapped.call_args_list)
|
||||
assert "hello" in text_wrapped_args, "text_wrapped not called with stream content 'hello'"
|
||||
@@ -69,7 +69,7 @@ class TestMMADashboardStreams:
|
||||
})
|
||||
imgui_mock = _make_imgui_mock()
|
||||
imgui_mock.begin_child.return_value = True
|
||||
with patch("gui_2.imgui", imgui_mock):
|
||||
with patch("src.gui_2.imgui", imgui_mock):
|
||||
App._render_tier_stream_panel(app, "Tier 3", None)
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user