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

Method test_batch_manifest_embedded

tests/test_manager.py:2701–2716  ·  view source on GitHub ↗

batch_manifest dict is included when provided.

(self)

Source from the content-addressed store, hash-verified

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."""
2703
2704 manifest_dict = {
2705 "version": 1,
2706 "model": "openai/test-model",
2707 "batch_size": 50,
2708 "total_batches": 1,
2709 "batches": [],
2710 }
2711 report = self._make_report(batch_manifest=manifest_dict)
2712 _write_report(self._run_dir, report)
2713
2714 data = self._read_report()
2715 self.assertEqual(data["batch_manifest"]["model"], "openai/test-model")
2716 self.assertEqual(data["batch_manifest"]["batch_size"], 50)
2717
2718 def test_standalone_manifest_cleaned_up(self) -> None:
2719 """_write_report removes batch-manifest.json if it exists."""

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