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

Method test_interrupted_report

tests/test_manager.py:2730–2739  ·  view source on GitHub ↗

Interrupted runs record interrupted=true in the summary.

(self)

Source from the content-addressed store, hash-verified

2728 self.assertFalse(os.path.isfile(standalone))
2729
2730 def test_interrupted_report(self) -> None:
2731 """Interrupted runs record interrupted=true in the summary."""
2732
2733 report = self._make_report(
2734 summary=ExtractSummary(succeeded=0, skipped=0, failed=0, interrupted=True),
2735 )
2736 _write_report(self._run_dir, report)
2737
2738 data = self._read_report()
2739 self.assertTrue(data["summary"]["interrupted"])
2740
2741 def test_fatal_error_report(self) -> None:
2742 """Fatal errors are recorded in summary.fatal_error."""

Callers

nothing calls this directly

Calls 4

_make_reportMethod · 0.95
_read_reportMethod · 0.95
ExtractSummaryClass · 0.90
_write_reportFunction · 0.90

Tested by

no test coverage detected