(self, tmp_path)
| 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) |