MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / test_slash_exit

Function test_slash_exit

tests/test_chat_slash_commands.py:204–210  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

202
203@pytest.mark.asyncio
204async def test_slash_exit(tmp_path):
205 kb_dir = _setup_kb(tmp_path)
206 session = _make_session(kb_dir)
207 p, _collected = _collect_fmt()
208 with p:
209 result = await _handle_slash("/exit", kb_dir, session, _STYLE)
210 assert result == "exit"
211
212
213@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 4

_handle_slashFunction · 0.90
_make_sessionFunction · 0.85
_collect_fmtFunction · 0.85
_setup_kbFunction · 0.70

Tested by

no test coverage detected