test: the suite runs green -- fix the 16 long-standing 'known failures'

They were two stale tests, not broken code:
- tests/test_bw_ascii_report.py (15) read its Blastware ASCII reports
  from decode-re/5-8-26/ at the repo root, removed when the fixtures
  moved to tests/fixtures/decode-re-5-8-26/.  At the real path all 27 of
  its tests pass.  The same stale path made a report-pairing test in
  test_event_file_io.py skip silently; it now runs and passes.
- test_save_imported_bw_without_report_works_unchanged (1) expected a
  sample-less event's PPV to be 0.0.  Since fa9d3cd (2026-05-20) the
  decoder deliberately leaves peaks unknown (None) so a backfill never
  writes zeros over real peaks; the sidecar-level check now says so.
  Its main assertion -- no bw_report block without a report -- is
  unchanged and covered nowhere else.

Full suite: 1,620 passed, 0 failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
This commit is contained in:
serversdownandClaude Opus 5.5 committed 2026-11-11 14:54:16 -05:00
1 parent e2c0f26b69
commit 8c6cad681c
2 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ from minimateplus.bw_ascii_report import (
)
FIXTURES = Path(__file__).parent.parent / "decode-re" / "5-8-26"
FIXTURES = Path(__file__).parent / "fixtures" / "decode-re-5-8-26"
def _fixture(event_name: str) -> Path:
+5 -4
View File
@@ -410,8 +410,8 @@ def test_save_imported_bw_with_paired_report(tmp_path: Path):
# Use one of the real BW ASCII exports as the paired report.
report_path = (
Path(__file__).parent.parent
/ "decode-re" / "5-8-26" / "event-c" / "M529LK44.AB0.TXT"
Path(__file__).parent
/ "fixtures" / "decode-re-5-8-26" / "event-c" / "M529LK44.AB0.TXT"
)
if not report_path.exists():
import pytest as _pt
@@ -498,8 +498,9 @@ def test_save_imported_bw_without_report_works_unchanged(tmp_path: Path):
sc = store.load_sidecar("BE11529", fname)
assert sc is not None
assert "bw_report" not in sc # block is absent without a report
# Synthetic event has zero samples → peaks all zero (was true before this change)
assert sc["peak_values"]["transverse"] == 0.0
# Synthetic event has zero samples: the peaks stay unknown (None), never a
# fabricated 0.0 that a backfill could write over real peaks (fa9d3cd).
assert sc["peak_values"]["transverse"] is None
def test_save_imported_bw_round_trip(tmp_path: Path):