feat(gui): Implement RAG Settings panel in AI Settings

This commit is contained in:
2026-05-04 11:22:06 -04:00
parent a9ca5ad781
commit f57e2fe4f0
7 changed files with 74 additions and 13 deletions
+15
View File
@@ -0,0 +1,15 @@
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