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

Method test_diff_db_invalid_mode

tests/test_manager.py:1765–1772  ·  view source on GitHub ↗

Invalid mode is rejected.

(self)

Source from the content-addressed store, hash-verified

1763 self.assertTrue(cfg.debug)
1764
1765 def test_diff_db_invalid_mode(self):
1766 """Invalid mode is rejected."""
1767
1768 runner = CliRunner()
1769 result = runner.invoke(cli, ["diff", "db", "--mode", "bogus", "/fake/a.1.gz"])
1770
1771 self.assertNotEqual(result.exit_code, 0)
1772 self.assertIn("invalid mode", result.output)
1773
1774
1775# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected