feat(gui): Implement RAG Settings panel in AI Settings
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user