We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 151b90e commit f383fbeCopy full SHA for f383fbe
1 file changed
tests/test_add_command.py
@@ -58,7 +58,8 @@ def _setup_kb(self, tmp_path):
58
59
def test_add_missing_init(self, tmp_path):
60
runner = CliRunner()
61
- with runner.isolated_filesystem(temp_dir=tmp_path):
+ with runner.isolated_filesystem(temp_dir=tmp_path), \
62
+ patch("openkb.cli._find_kb_dir", return_value=None):
63
result = runner.invoke(cli, ["add", "somefile.pdf"])
64
assert "No knowledge base found" in result.output
65
0 commit comments