diff --git a/tests/test_bw_ascii_report.py b/tests/test_bw_ascii_report.py index 5756fb2..3c4b467 100644 --- a/tests/test_bw_ascii_report.py +++ b/tests/test_bw_ascii_report.py @@ -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: diff --git a/tests/test_event_file_io.py b/tests/test_event_file_io.py index 9135747..d3074cb 100644 --- a/tests/test_event_file_io.py +++ b/tests/test_event_file_io.py @@ -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):