Fatal errors are recorded in summary.fatal_error.
(self)
| 2739 | self.assertTrue(data["summary"]["interrupted"]) |
| 2740 | |
| 2741 | def test_fatal_error_report(self) -> None: |
| 2742 | """Fatal errors are recorded in summary.fatal_error.""" |
| 2743 | |
| 2744 | report = self._make_report( |
| 2745 | summary=ExtractSummary( |
| 2746 | succeeded=0, |
| 2747 | skipped=0, |
| 2748 | failed=1, |
| 2749 | fatal_error="provider auth failed", |
| 2750 | ), |
| 2751 | ) |
| 2752 | _write_report(self._run_dir, report) |
| 2753 | |
| 2754 | data = self._read_report() |
| 2755 | self.assertEqual(data["summary"]["fatal_error"], "provider auth failed") |
| 2756 | self.assertEqual(data["summary"]["failed"], 1) |
| 2757 | |
| 2758 | |
| 2759 | class TestOptionCountSummary(unittest.TestCase): |
nothing calls this directly
no test coverage detected