test(fixtures): the STS fixtures and fixture codes are fictitious
Three STS fixtures still carried the section titles and labels of one real reference document, and three identifiers were copies of its codes with a letter or a word swapped. They now describe an invented kitchen counter and cookbook series: the titles, labels and descriptions of sts-identity.xml, sts-inherit.xml and sts-empty-label.xml, the P350/P351 document codes, the 99-0001 delivery prefix and chapter 7 of the image and accounting corpora. Generated fixtures are regenerated and the witness inventory's per-document totals are identical before and after; only names and text move. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5359394a4f
commit
88cf67f12e
65 changed files with 396 additions and 390 deletions
|
|
@ -14,11 +14,11 @@ editable tree -- an editable install reads `src/` live, so a "before" run taken
|
|||
in this working tree would have been measuring the change it was supposed to
|
||||
predate:
|
||||
|
||||
carried 0 of 2 local (2 declared) kapittel-84-tabell.pdf
|
||||
carried 0 of 1 local (1 declared) kapittel-84-notat.docx
|
||||
carried 0 of 1 local (1 declared) kapittel-84-presentasjon.pptx
|
||||
carried 0 of 2 local (3 declared) kapittel-84-web.html
|
||||
carried 0 of 2 local (2 declared) kapittel-84-sts.xml
|
||||
carried 0 of 2 local (2 declared) kapittel-7-tabell.pdf
|
||||
carried 0 of 1 local (1 declared) kapittel-7-notat.docx
|
||||
carried 0 of 1 local (1 declared) kapittel-7-presentasjon.pptx
|
||||
carried 0 of 2 local (3 declared) kapittel-7-web.html
|
||||
carried 0 of 2 local (2 declared) kapittel-7-sts.xml
|
||||
---------------------------------------------------------------
|
||||
carried 0 of 8 local images across 5 documents (9 declared),
|
||||
and the bundle held no `assets/` directory at all.
|
||||
|
|
@ -32,7 +32,7 @@ is this one.
|
|||
WHY THE GATE IS A BUNDLE-LEVEL COUNT and not a per-function assertion: the
|
||||
failure this exists to stop is not "the reader returned nothing". It is a
|
||||
bundle that looks complete and is not -- a real reference standard saying
|
||||
"... er gitt i tabell 84-2" over an empty space, with `okf check` green
|
||||
"... er gitt i tabell 7-2" over an empty space, with `okf check` green
|
||||
and `okf quality` unable to see it. So the gate runs the real command, walks
|
||||
the written bundle, and asks whether the bytes are there.
|
||||
|
||||
|
|
@ -62,11 +62,11 @@ OKF_VERSION = "0.2"
|
|||
|
||||
#: Every document in the fixture inbox, with the reader it exercises.
|
||||
DOCUMENTS = (
|
||||
"kapittel-84-tabell.pdf",
|
||||
"kapittel-84-notat.docx",
|
||||
"kapittel-84-presentasjon.pptx",
|
||||
"kapittel-84-web.html",
|
||||
"kapittel-84-sts.xml",
|
||||
"kapittel-7-tabell.pdf",
|
||||
"kapittel-7-notat.docx",
|
||||
"kapittel-7-presentasjon.pptx",
|
||||
"kapittel-7-web.html",
|
||||
"kapittel-7-sts.xml",
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -218,7 +218,7 @@ def test_a_remote_image_is_a_pointer_without_a_file_never_a_silent_drop(
|
|||
) -> None:
|
||||
"""The network boundary, stated in the artifact rather than implied by absence."""
|
||||
bundle, _ = built
|
||||
html = [path for path in _concepts(bundle) if "kapittel-84-web.html" in path.read_text("utf-8")]
|
||||
html = [path for path in _concepts(bundle) if "kapittel-7-web.html" in path.read_text("utf-8")]
|
||||
assert html, "the html document produced no concept at all"
|
||||
body = "\n".join(path.read_text("utf-8") for path in html)
|
||||
assert "https://example.invalid/ekstern.png" in body, (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue