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

Function test_slash_clear

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

Source from the content-addressed store, hash-verified

212
213@pytest.mark.asyncio
214async def test_slash_clear(tmp_path):
215 kb_dir = _setup_kb(tmp_path)
216 session = _make_session(kb_dir)
217 p, _collected = _collect_fmt()
218 with p:
219 result = await _handle_slash("/clear", kb_dir, session, _STYLE)
220 assert result == "new_session"
221
222
223def test_save_transcript_strips_ghost_wikilinks(tmp_path):

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