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

Method test_clean_db

tests/test_manager.py:2459–2466  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2457 os.rmdir(self.tmp)
2458
2459 def test_clean_db(self):
2460 self.store.add_manpage(_make_manpage("tar"), _make_raw())
2461
2462 runner = CliRunner()
2463 result = runner.invoke(cli, ["--db", self.db_path, "db-check"])
2464
2465 self.assertEqual(result.exit_code, 0)
2466 self.assertIn("No issues found", result.output)
2467
2468 def test_reports_issues(self):
2469 """Insert an orphaned mapping so db-check has something to report."""

Callers

nothing calls this directly

Calls 3

add_manpageMethod · 0.80
_make_manpageFunction · 0.70
_make_rawFunction · 0.70

Tested by

no test coverage detected