(self)
| 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.""" |
nothing calls this directly
no test coverage detected