MCPcopy Create free account
hub / github.com/idank/explainshell / test_no_db_set

Method test_no_db_set

tests/test_manager.py:2173–2180  ·  view source on GitHub ↗

Commands that need a DB fail cleanly when --db is not set.

(self)

Source from the content-addressed store, hash-verified

2171 """CLI gives clean errors for missing/nonexistent --db."""
2172
2173 def test_no_db_set(self):
2174 """Commands that need a DB fail cleanly when --db is not set."""
2175
2176 runner = CliRunner()
2177 result = runner.invoke(cli, ["show", "stats"])
2178
2179 self.assertNotEqual(result.exit_code, 0)
2180 self.assertIn("No database path", result.output)
2181
2182 def test_nonexistent_db(self):
2183 """Read-only commands fail cleanly when DB file doesn't exist."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected