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
@@ -348,16 +348,10 @@ def test_firmware_line_of_an_unknown_flags_byte():
|
||||
|
||||
# ── Whole-session round trip ──────────────────────────────────────────────────
|
||||
|
||||
_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"
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
not _CAPTURES.is_dir(),
|
||||
reason="capture directory is gitignored; present only on a dev box",
|
||||
)
|
||||
def test_whole_captured_sessions_parse_with_no_bad_checksums():
|
||||
"""Belt-and-braces against the real bytes when they happen to be here.
|
||||
|
||||
@@ -379,10 +373,6 @@ def test_whole_captured_sessions_parse_with_no_bad_checksums():
|
||||
assert total >= 251, f"expected at least 251 response frames across the corpus, got {total}"
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
not _CAPTURES.is_dir(),
|
||||
reason="capture directory is gitignored; present only on a dev box",
|
||||
)
|
||||
def test_builder_reproduces_every_captured_read_frame():
|
||||
"""218/218. This is the test that would have caught the escape-set error."""
|
||||
checked = 0
|
||||
@@ -496,10 +486,6 @@ def test_request_sub_refuses_a_frame_that_is_not_in_canonical_form(name):
|
||||
request_sub(_noncanonical_frames()[name])
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
not _CAPTURES.is_dir(),
|
||||
reason="capture directory is gitignored; present only on a dev box",
|
||||
)
|
||||
def test_builder_reproduces_every_captured_request_frame_including_writes():
|
||||
"""251/251: the 218 reads plus the 33 data-carrying writes."""
|
||||
checked = 0
|
||||
|
||||
Reference in new issue
Block a user