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

Method test_add_nonexistent_path

tests/test_add_command.py:216–222  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

214 assert "Unsupported file type" in result.output
215
216 def test_add_nonexistent_path(self, tmp_path):
217 kb_dir = self._setup_kb(tmp_path)
218
219 runner = CliRunner()
220 with patch("openkb.cli._find_kb_dir", return_value=kb_dir):
221 result = runner.invoke(cli, ["add", str(tmp_path / "nonexistent.pdf")])
222 assert "does not exist" in result.output
223
224 def test_add_skipped_file(self, tmp_path):
225 kb_dir = self._setup_kb(tmp_path)

Callers

nothing calls this directly

Calls 1

_setup_kbMethod · 0.95

Tested by

no test coverage detected