test: everything the tests read is in git -- a fresh checkout passes on its own
A fresh checkout of dev failed 10 tests, errored 3 and skipped 64: the
tests read 100 files that were only on the dev box. Recorded with an
audit hook over a full run: 100 files, 2.3 MB, out of 1.1 GB of
bridges/captures/ and 45 MB of histogram-extension-re/.
- Force-added in place: tests/fixtures/thor-idf (14), histogram-multi-
interval (2) and the one histogram-extension-re file read.
- Copied into tests/fixtures/example-events/ (10) and
tests/fixtures/captures/ (73, from bridges/captures/), and the tests
pointed there.
- The presence skips ('not on this machine', 'gitignored', 'fixture
missing') are gone: a missing fixture now fails instead of skipping.
The worktree now runs as the dev box does: 1,787 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:
1 parent
c2b8e76774
commit
4d0984dcaf
109 files changed
+23763
-77
No files matched your search
@@ -6,8 +6,8 @@ we put on the wire matches what THOR put on the wire** — 99 frames — while a
|
||||
decoding all six events and cross-checking each waveform's peak vector sum
|
||||
against the one the device computed itself.
|
||||
|
||||
That capture is gitignored, so those tests skip on a fresh clone; the offline
|
||||
tests below use embedded real response bytes and cover the same logic.
|
||||
The capture's files are copied into tests/fixtures/captures/ (2026-11-19);
|
||||
the offline tests below use embedded real response bytes and cover the same logic.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -218,10 +218,8 @@ def test_get_event_refuses_without_a_record_type():
|
||||
|
||||
# ── Against the real captured session ─────────────────────────────────────────
|
||||
|
||||
_CAPTURES = (
|
||||
Path(__file__).resolve().parents[1]
|
||||
/ "bridges" / "captures" / "9-24-26 - micromate2"
|
||||
)
|
||||
# The files these tests read, copied from bridges/captures/ (2026-11-19).
|
||||
_CAPTURES = Path(__file__).resolve().parent / "fixtures" / "captures" / "9-24-26 - micromate2"
|
||||
_DOWNLOAD = "raw_bw_20260925_011403_Download_events_then_delete_1_event.bin"
|
||||
|
||||
|
||||
@@ -253,10 +251,6 @@ def _destuffed(blob: bytes, is_req: bool):
|
||||
i = j + 1
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
not (_CAPTURES / _DOWNLOAD).is_file(),
|
||||
reason="capture is gitignored; present only on a dev box",
|
||||
)
|
||||
def test_replaying_thors_session_reproduces_every_byte_and_decodes_every_event():
|
||||
"""The whole point of step 4.
|
||||
|
||||
@@ -315,10 +309,6 @@ def test_replaying_thors_session_reproduces_every_byte_and_decodes_every_event()
|
||||
assert len(t.written) == len(want_wire) + 2, "only the sentinel read is extra"
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
not (_CAPTURES / _DOWNLOAD).is_file(),
|
||||
reason="capture is gitignored; present only on a dev box",
|
||||
)
|
||||
def test_a_corrupted_stored_peak_is_caught_by_the_self_check():
|
||||
"""Prove the verify path actually fires -- otherwise it is decoration."""
|
||||
reqs = list(_destuffed((_CAPTURES / _DOWNLOAD).read_bytes(), True))
|
||||
|
||||
Reference in new issue
Block a user