test(gui): Fix test_session_hub_merge source inspection targets

Updated tests to inspect _render_discussion_hub and _render_main_interface to reflect the current GUI structure.
This commit is contained in:
2026-05-14 20:12:31 -04:00
parent 94bc600fd0
commit 302faada86
+4 -4
View File
@@ -5,14 +5,14 @@ import inspect
def test_session_hub_window_removed(): def test_session_hub_window_removed():
import src.gui_2 as gui_2 import src.gui_2 as gui_2
source = inspect.getsource(gui_2.App._gui_func) source = inspect.getsource(gui_2.App._render_main_interface)
assert "Session Hub" not in source, "Session Hub window should be removed" assert "Session Hub" not in source, "Session Hub window should be removed"
def test_discussion_hub_has_snapshot_tab(): def test_discussion_hub_has_snapshot_tab():
import src.gui_2 as gui_2 import src.gui_2 as gui_2
source = inspect.getsource(gui_2.App._gui_func) source = inspect.getsource(gui_2.App._render_discussion_hub)
assert "Snapshot" in source, "Discussion Hub should have Snapshot tab" assert "Snapshot" in source, "Discussion Hub should have Snapshot tab"
assert "_render_snapshot_tab" in source, "Discussion Hub should call _render_snapshot_tab" assert "_render_snapshot_tab" in source, "Discussion Hub should call _render_snapshot_tab"
@@ -20,7 +20,7 @@ def test_discussion_hub_has_snapshot_tab():
def test_discussion_hub_has_context_composition_placeholder(): def test_discussion_hub_has_context_composition_placeholder():
import src.gui_2 as gui_2 import src.gui_2 as gui_2
source = inspect.getsource(gui_2.App._gui_func) source = inspect.getsource(gui_2.App._render_discussion_hub)
assert "Context Composition" in source, ( assert "Context Composition" in source, (
"Discussion Hub should have Context Composition tab placeholder" "Discussion Hub should have Context Composition tab placeholder"
) )
@@ -29,7 +29,7 @@ def test_discussion_hub_has_context_composition_placeholder():
def test_discussion_hub_has_takes_tab(): def test_discussion_hub_has_takes_tab():
import src.gui_2 as gui_2 import src.gui_2 as gui_2
source = inspect.getsource(gui_2.App._gui_func) source = inspect.getsource(gui_2.App._render_discussion_hub)
assert "Takes" in source, "Discussion Hub should have Takes tab" assert "Takes" in source, "Discussion Hub should have Takes tab"