16 lines
511 B
Python
16 lines
511 B
Python
|
|
import pytest
|
|
from src.gui_2 import App
|
|
|
|
def test_rag_panel_exists():
|
|
"""Verify that _render_rag_panel has been added to the App class."""
|
|
assert hasattr(App, '_render_rag_panel')
|
|
assert callable(App._render_rag_panel)
|
|
|
|
def test_rag_panel_integration():
|
|
"""Verify that _gui_func calls _render_rag_panel by inspecting source or via mock."""
|
|
import inspect
|
|
source = inspect.getsource(App._gui_func)
|
|
assert "self._render_rag_panel()" in source
|
|
assert "imgui.collapsing_header(\"RAG Settings\")" in source
|