diff --git a/tests/test_micromate_framing.py b/tests/test_micromate_framing.py index 3e72f81..0ea1b31 100644 --- a/tests/test_micromate_framing.py +++ b/tests/test_micromate_framing.py @@ -373,7 +373,10 @@ def test_whole_captured_sessions_parse_with_no_bad_checksums(): bad = [f for f in frames if not f.checksum_valid] assert not bad, f"{path.name}: {len(bad)} bad checksums" total += len(frames) - assert total == 251, f"expected 251 response frames across the corpus, got {total}" + # A floor, not an exact count: the corpus is a gitignored folder that grows + # (2026-11-02, the full copy from the BW VM: 287 responses, 241 reads, every + # one passing the same rule). Fewer than first verified means a lost file. + assert total >= 251, f"expected at least 251 response frames across the corpus, got {total}" @pytest.mark.skipif( @@ -410,7 +413,10 @@ def test_builder_reproduces_every_captured_read_frame(): ) checked += 1 i = j + 1 - assert checked == 218, f"expected 218 read frames, checked {checked}" + # A floor, not an exact count: the corpus is a gitignored folder that grows + # (2026-11-02, the full copy from the BW VM: 287 responses, 241 reads, every + # one passing the same rule). Fewer than first verified means a lost file. + assert checked >= 218, f"expected at least 218 read frames, checked {checked}" # ── the data section (writes) ───────────────────────────────────────────────── @@ -523,4 +529,7 @@ def test_builder_reproduces_every_captured_request_frame_including_writes(): ) checked += 1 i = j + 1 - assert checked == 251, f"expected 251 request frames, checked {checked}" + # A floor, not an exact count: the corpus is a gitignored folder that grows + # (2026-11-02, the full copy from the BW VM: 287 responses, 241 reads, every + # one passing the same rule). Fewer than first verified means a lost file. + assert checked >= 251, f"expected at least 251 request frames, checked {checked}" diff --git a/tests/test_micromate_opcodes.py b/tests/test_micromate_opcodes.py index 6b68e35..d5b3f4e 100644 --- a/tests/test_micromate_opcodes.py +++ b/tests/test_micromate_opcodes.py @@ -98,7 +98,7 @@ def test_an_unknown_opcode_is_refused_and_nothing_is_written(sub): assert t.written == [] -@pytest.mark.parametrize("sub", [0xEE, 0x7E, 0xA8]) +@pytest.mark.parametrize("sub", [0xEE, 0x71, 0xA8]) # 0x71 (setup write) stays above the ceiling until phase 5 def test_a_permit_beyond_the_ceiling_is_refused_at_the_wire(sub): p, t = proto([]) with pytest.raises(OpcodeRefused):