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

Function test_slash_unknown

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

Source from the content-addressed store, hash-verified

191
192@pytest.mark.asyncio
193async def test_slash_unknown(tmp_path):
194 kb_dir = _setup_kb(tmp_path)
195 session = _make_session(kb_dir)
196 p, collected = _collect_fmt()
197 with p:
198 result = await _handle_slash("/foobar", kb_dir, session, _STYLE)
199 assert result is None
200 assert any("Unknown command" in s for s in collected)
201
202
203@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