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

Method test_add_unsupported_extension

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

Source from the content-addressed store, hash-verified

204 assert "ignore.xyz" not in called_names
205
206 def test_add_unsupported_extension(self, tmp_path):
207 kb_dir = self._setup_kb(tmp_path)
208 doc = tmp_path / "file.xyz"
209 doc.write_text("content")
210
211 runner = CliRunner()
212 with patch("openkb.cli._find_kb_dir", return_value=kb_dir):
213 result = runner.invoke(cli, ["add", str(doc)])
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)

Callers

nothing calls this directly

Calls 1

_setup_kbMethod · 0.95

Tested by

no test coverage detected