test(fixtures): replace sector-specific example material with generic, fictitious examples — green
Every fixture, test document, tool example and document now uses an invented kitchen-and-baking handbook series, written in this repository. The package's behaviour is unchanged; src/ changes are comments and help text only. - Generated fixtures are regenerated from their generators. Their structural counts are identical before and after: elements, images, rows, cells, headings, bookmarks and the witness inventory's per-document totals. The image-inbox and accounting documents are renamed kapittel-84-*. - tools/okf_accounting_gate.py: the two options that named one real corpus each are replaced by a generic, repeatable --corpus PATH with no default. Row 5 compares the PDF pair alone. Gate verdict unchanged: RED rows 2, 3, 6. - tools/okf_witness.py: the STS JSON reader for one publisher's delivery is removed, along with its three twins and five tests. The mutation harness loses W09. - docs/: 13 dated reports that documented runs on a retired reference corpus are removed, and 40 are neutralized. Dead links are removed, and no new dangling path is introduced. - The synthetic MCP-gate corpus and the residual probe words are neutral. Valgt: keep the `okf quality --fasit` bar value (the measured fraction, one corpus) and rewrite only its provenance, because the verdict stays unchanged and the number names nothing. Term check with the local list: 0 of 411 tracked files, 0 file names, 0 of 27 binary fixtures. Suite after git add: 2457 passed, 1 skipped. The base tree had 2460 passed and 2 skipped; five tests went with the JSON reader and four were added by the term check. ruff, ruff format and mypy --strict src/ are clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1e7345a401
commit
9d1f4b14ed
174 changed files with 1889 additions and 6512 deletions
|
|
@ -1,8 +1,8 @@
|
|||
"""A structure the publisher DECLARED takes the route declared structure takes.
|
||||
|
||||
MEASURED, AND THE MEASUREMENT IS THE WHOLE REASON THIS FILE EXISTS. Round 13
|
||||
gave `.xml` a reader that emits **2 761 of 2 761** ATX lines for R761's titled
|
||||
`<sec>` elements, with the text preserved exactly. At SHIPPED DEFAULTS the
|
||||
gave `.xml` a reader that emits **2 761 of 2 761** ATX lines for a reference
|
||||
standard's titled `<sec>` elements, with the text preserved exactly. At SHIPPED DEFAULTS the
|
||||
build then delivered **23 concepts and 15 of 2 761 boundaries** -- everything
|
||||
after the reader ate it. Two steps, each measured on that document and
|
||||
reproduced in miniature by `sts-container.xml`:
|
||||
|
|
@ -92,7 +92,7 @@ def test_a_declared_section_is_a_rule_of_its_own_and_not_the_bookmark_arms() ->
|
|||
|
||||
|
||||
def test_a_container_section_survives_where_the_orphan_check_deletes_it() -> None:
|
||||
"""710 of 2 761 on R761; 1 of 9 here, and it is the chapter above the rest."""
|
||||
"""710 of 2 761 on the reference standard; 1 of 9 here, and it is the chapter above the rest."""
|
||||
text = extract.extract_text(CONTAINER.name, CONTAINER.read_bytes())
|
||||
marks = extract.xml_outline(CONTAINER.name, CONTAINER.read_bytes())
|
||||
|
||||
|
|
@ -117,7 +117,7 @@ def test_a_container_section_survives_where_the_orphan_check_deletes_it() -> Non
|
|||
|
||||
|
||||
def test_the_unit_fold_does_not_eat_a_section_the_publisher_declared() -> None:
|
||||
"""2 089 -> 23 on R761; 8 -> 3 here. At the SHIPPED defaults, not behind a flag."""
|
||||
"""2 089 -> 23 on the reference standard; 8 -> 3 here. At the SHIPPED defaults, not behind a flag."""
|
||||
text = extract.extract_text(CONTAINER.name, CONTAINER.read_bytes())
|
||||
marks = extract.xml_outline(CONTAINER.name, CONTAINER.read_bytes())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue