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

Function test_slash_add_nonexistent_path

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

Source from the content-addressed store, hash-verified

97
98@pytest.mark.asyncio
99async def test_slash_add_nonexistent_path(tmp_path):
100 kb_dir = _setup_kb(tmp_path)
101 session = _make_session(kb_dir)
102 p, collected = _collect_fmt()
103 with p:
104 result = await _handle_slash("/add /no/such/path", kb_dir, session, _STYLE)
105 assert result is None
106 assert any("Path does not exist" in s for s in collected)
107
108
109@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