test: account for #3987 Step B3.5 block in the B3-merge skill tests

The partial-read coverage check (#3987) adds a python block between the
Step B3 merge and Part C. Two skill-path tests that landed separately in
the 0.9.9x skill work hard-code the block count in that range (3) and
then execute every block in it. Bump the expected count to 4; the
behavioral assertions (token sums, merged node sets, stale-chunk
clearing) still hold because B3.5 only writes an empty
.graphify_partial.txt on the all-cached and codex-merge paths.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
safishamsiandClaude Opus 4.8 committed 2026-10-20 16:56:09 +01:00
1 parent 5942ff8281
commit b90b9df794
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -51,7 +51,9 @@ def test_codex_chunk_results_survive_b3_merge_cache_and_all_cached_rerun(tmp_pat
b0 = _python_blocks(skill, "**Step B0", "**Step B1")
b3 = _python_blocks(skill, "**Step B3", "#### Part C")
part_c = _python_blocks(skill, "#### Part C", "\n### ")[:1]
assert len(b0) == 1 and len(b3) == 3 and len(part_c) == 1
# Step B3.5 (the partial-read coverage check from #3987) sits between the
# B3 merge and Part C, so the sliced range holds four blocks, not three.
assert len(b0) == 1 and len(b3) == 4 and len(part_c) == 1
corpus = tmp_path / "corpus"
corpus.mkdir()
+3 -1
View File
@@ -59,7 +59,9 @@ def test_all_cached_run_reaches_part_c_with_cached_nodes_and_no_stale_chunks(tmp
b0 = _python_blocks(body, "**Step B0", "**Step B1")
b3 = _python_blocks(body, "**Step B3", "#### Part C")
part_c = _python_blocks(body, "#### Part C", "\n### ")[:1]
assert len(b0) == 1 and len(b3) == 3 and len(part_c) == 1
# b3 spans Step B3 (merge) through Step B3.5 (the partial-read coverage
# check added in #3987), so the range carries four blocks, not three.
assert len(b0) == 1 and len(b3) == 4 and len(part_c) == 1
corpus = tmp_path / "corpus"
corpus.mkdir()