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
|
|
@ -30,7 +30,7 @@ from llm_ingestion_okf import cli, consume, contract_check, skill
|
|||
FIXTURE = Path(__file__).parent / "fixtures" / "sts-inherit.xml"
|
||||
SHELL = "Utskifting av list"
|
||||
#: The one lettered point the shell's enclosing section states.
|
||||
INHERITED = "Omfatter utskifting av skadde enkeltdeler i gelender."
|
||||
INHERITED = "Omfatter utskifting av skadde enkeltdeler i kjokkenbenk."
|
||||
|
||||
|
||||
def _flagged(tmp_path: Path) -> Path:
|
||||
|
|
@ -131,7 +131,7 @@ def test_a_parent_the_payload_already_holds_is_not_delivered_twice(tmp_path: Pat
|
|||
assert "text" not in excerpt["parent"]
|
||||
# Two shells sharing one enclosing section: its text travels once.
|
||||
two = consume.build_payload(
|
||||
bundle, question="Utskifting av list og stolpe", k=2, follow_parent=True
|
||||
bundle, question="Utskifting av list og hengsel", k=2, follow_parent=True
|
||||
)
|
||||
texts = [e["parent"].get("text") for e in two["excerpts"] if "parent" in e]
|
||||
assert len(texts) == 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue