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

Method test_reason_embedded

tests/test_manager.py:2692–2699  ·  view source on GitHub ↗

reason string is included in the JSON when provided.

(self)

Source from the content-addressed store, hash-verified

2690 self.assertNotIn("reason", data)
2691
2692 def test_reason_embedded(self) -> None:
2693 """reason string is included in the JSON when provided."""
2694
2695 report = self._make_report(reason="bulk re-run after mandoc emphasis fix")
2696 _write_report(self._run_dir, report)
2697
2698 data = self._read_report()
2699 self.assertEqual(data["reason"], "bulk re-run after mandoc emphasis fix")
2700
2701 def test_batch_manifest_embedded(self) -> None:
2702 """batch_manifest dict is included when provided."""

Callers

nothing calls this directly

Calls 3

_make_reportMethod · 0.95
_read_reportMethod · 0.95
_write_reportFunction · 0.90

Tested by

no test coverage detected