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