| import json |
| from pathlib import Path |
|
|
| from runner import mycelium_v04_full_runner, run_battery |
|
|
| ROOT = Path(__file__).resolve().parents[1] |
|
|
|
|
| def test_battery_all_expected(): |
| fixtures = json.loads((ROOT / "battery_fixtures.json").read_text(encoding="utf-8")) |
| rows, summary = run_battery(fixtures) |
| assert summary["status"] == "PASS" |
| assert summary["passed"] == summary["total"] |
| for row in rows: |
| assert row["actual"] == row["expected"] |
|
|
|
|
| def test_honest_scar_earns_resonance(): |
| payload = json.loads((ROOT / "sample_inputs" / "honest_scar.json").read_text(encoding="utf-8")) |
| out = mycelium_v04_full_runner(payload) |
| assert out["classification"] == "PASS_HONEST_SCAR_REPAIR" |
| assert out["resonance_earned"] is True |
| assert out["scar_preserved"] is True |
| assert out["reset_to_clean_baseline"] is False |
|
|