1- """The LegendKeeper door (onlyworlds.legendkeeper) on Boss's recorded wire answers.
1+ """The LegendKeeper door (onlyworlds.legendkeeper) on recorded wire answers.
22
33The three files in ``fixtures/legendkeeper/`` are real answers of the LegendKeeper API v3, read
4- live on 2026-10-22 on Titus's project (made-up content, no key, no email; Boss's findings ). They
4+ live on 2026-10-22 on Titus's project (made-up content, no key, no email). They
55are specimens, not a whole walk, so ``answers()`` composes the walk the door makes from them and says what it fills in:
66
77- the project answer (``getProject``) was not recorded: ``{"id": PID, "name": "Sikelia"}``, the
5757ROOT = Path (__file__ ).resolve ().parents [1 ]
5858LINT = ROOT / "codegen" / "schema-dist" / "walk" / "lint_folder.py"
5959FIX = Path (__file__ ).resolve ().parent / "fixtures" / "legendkeeper"
60+ #: An element's name as the recorded project has it.
61+ WIRE_TEST = "Boss wire test (delete me)"
6062PID = "sikelia0"
6163P = f"/projects/{ PID } "
6264KEY = "lk_test_SECRET_never_written"
@@ -161,7 +163,7 @@ def test_the_tree_converts_to_the_element_set(tmp_path: Path) -> None:
161163 assert aldric ["x_legendkeeper_aliases" ] == ["Lord Veyra" , "the Ash Lord" ]
162164 assert aldric ["x_legendkeeper_parent" ] == eid (BOSS )
163165 assert "supertype" not in aldric
164- for name in ("Sikelia" , "Boss wire test (delete me)" , "Order of the Ash" , "Castle Veyra" ):
166+ for name in ("Sikelia" , WIRE_TEST , "Order of the Ash" , "Castle Veyra" ):
165167 assert els [name ]["type" ] == "narrative" and els [name ]["supertype" ] == "Article" , name
166168 assert "x_legendkeeper_parent" not in els ["Sikelia" ]
167169 assert els ["Order of the Ash" ]["x_legendkeeper_tags" ] == ["faction" ]
@@ -195,7 +197,7 @@ def test_a_location_under_a_location_gets_its_parent_field(tmp_path: Path) -> No
195197 item ["tags" ] = ["Location" ] # a type name, any case
196198 out , _ = run (tmp_path , ans , type_map = MAP )
197199 els = by_name (out )
198- assert els ["Boss wire test (delete me)" ]["type" ] == "location"
200+ assert els [WIRE_TEST ]["type" ] == "location"
199201 assert els ["Castle Veyra" ]["parent_location" ] == eid (BOSS )
200202 assert els ["Castle Veyra" ]["x_legendkeeper_parent" ] == eid (BOSS )
201203
@@ -341,7 +343,7 @@ def visible(out: Path) -> str:
341343
342344
343345def test_a_secret_block_becomes_its_own_hidden_narrative (tmp_path : Path ) -> None :
344- """Skeld's rule: what the source hides, we hide, never drop and never publish."""
346+ """The rule: what the source hides, we hide, never drop and never publish."""
345347 out , report = run (tmp_path )
346348 els = by_name (out )
347349 secret = els ["Aldric Veyra: Secret" ]
@@ -462,7 +464,7 @@ def test_the_report_names_everything_not_placed(tmp_path: Path) -> None:
462464
463465
464466def test_ids_do_not_move_with_the_supertype (tmp_path : Path ) -> None :
465- """Untyped is supertype Article now (no tool name in a supertype, Skeld's ruling );
467+ """Untyped is supertype Article now (no tool name in a supertype, as ruled );
466468 the ids are those 0.41.0 gave: the sha256 of the sorted ids, one a line. The Region map's Map,
467469 made since 0.53.0, the timeline's Narrative and its lane's, since 0.56.0, and the Gregorian
468470 calendar's Construct, since 0.57.0, are the ids added."""
@@ -671,7 +673,7 @@ def test_a_pushed_element_comes_back_with_its_own_id_and_conventions(tmp_path: P
671673 assert aldric ["atlas_aliases" ] == ["Al" , "the Heir" ] and aldric ["x_house_motto" ] == "Ever onward"
672674 assert not [k for k in aldric if "onlyworlds" in k ]
673675 assert report .ow_unmapped == ["'Aldric Veyra': rivals: 1 link(s) outside the slice" ]
674- assert by_name (out )["Boss wire test (delete me)" ]["supertype" ] == "Ledger"
676+ assert by_name (out )[WIRE_TEST ]["supertype" ] == "Ledger"
675677 assert not [tag for tag in report .untyped_tags if tag .startswith ("ow-" )]
676678 assert any (n .startswith ("1 element take their id from their 'onlyworlds-id' row" ) for n in report .notes )
677679 # every link to Aldric uses that id
@@ -692,7 +694,7 @@ def test_an_onlyworlds_id_that_is_not_a_uuid_or_is_claimed_twice_is_not_the_id(t
692694 assert els ["Aldric Veyra" ]["id" ] == OW_ALDRIC
693695 assert els ["Castle Veyra" ]["id" ] == eid (CASTLE )
694696 assert els ["Castle Veyra" ]["x_legendkeeper_onlyworlds-id" ] == OW_ALDRIC # kept, never dropped
695- boss = els ["Boss wire test (delete me)" ]
697+ boss = els [WIRE_TEST ]
696698 assert boss ["id" ] == eid (BOSS ) and boss ["x_legendkeeper_onlyworlds-id" ] == "not-a-uuid"
697699 assert any ("is another resource's ('Aldric Veyra')" in n for n in report .notes )
698700
0 commit comments