@@ -14,21 +14,21 @@ def test_up_only() -> None:
1414
1515 assert extractor .extract_one (PATH_1 ) == {
1616 # Path1 links up to Root/H1
17- Link .outgoing (kind = "hierarchy" , tag = "up :Root/H1" ),
17+ Link .outgoing (kind = "hierarchy" , tag = "p :Root/H1" ),
1818 # Path1 is linked to by stuff under Root/H1/h2
19- Link .incoming (kind = "hierarchy" , tag = "up :Root/H1/h2" ),
19+ Link .incoming (kind = "hierarchy" , tag = "p :Root/H1/h2" ),
2020 }
2121
2222 assert extractor .extract_one (PATH_2 ) == {
2323 # Path2 links up to Root
24- Link .outgoing (kind = "hierarchy" , tag = "up :Root" ),
24+ Link .outgoing (kind = "hierarchy" , tag = "p :Root" ),
2525 # Path2 is linked to by stuff under Root/H1/h2
26- Link .incoming (kind = "hierarchy" , tag = "up :Root/H1" ),
26+ Link .incoming (kind = "hierarchy" , tag = "p :Root/H1" ),
2727 }
2828
2929 assert extractor .extract_one (PATH_3 ) == {
3030 # Path3 is linked to by stuff under Root
31- Link .incoming (kind = "hierarchy" , tag = "up :Root" ),
31+ Link .incoming (kind = "hierarchy" , tag = "p :Root" ),
3232 }
3333
3434
@@ -37,31 +37,31 @@ def test_up_and_down() -> None:
3737
3838 assert extractor .extract_one (PATH_1 ) == {
3939 # Path1 links up to Root/H1
40- Link .outgoing (kind = "hierarchy" , tag = "up :Root/H1" ),
40+ Link .outgoing (kind = "hierarchy" , tag = "p :Root/H1" ),
4141 # Path1 is linked to by stuff under Root/H1/h2
42- Link .incoming (kind = "hierarchy" , tag = "up :Root/H1/h2" ),
42+ Link .incoming (kind = "hierarchy" , tag = "p :Root/H1/h2" ),
4343 # Path1 links down to things under Root/H1/h2.
44- Link .outgoing (kind = "hierarchy" , tag = "down :Root/H1/h2" ),
44+ Link .outgoing (kind = "hierarchy" , tag = "c :Root/H1/h2" ),
4545 # Path1 is linked down to by Root/H1
46- Link .incoming (kind = "hierarchy" , tag = "down :Root/H1" ),
46+ Link .incoming (kind = "hierarchy" , tag = "c :Root/H1" ),
4747 }
4848
4949 assert extractor .extract_one (PATH_2 ) == {
5050 # Path2 links up to Root
51- Link .outgoing (kind = "hierarchy" , tag = "up :Root" ),
51+ Link .outgoing (kind = "hierarchy" , tag = "p :Root" ),
5252 # Path2 is linked to by stuff under Root/H1/h2
53- Link .incoming (kind = "hierarchy" , tag = "up :Root/H1" ),
53+ Link .incoming (kind = "hierarchy" , tag = "p :Root/H1" ),
5454 # Path2 links down to things under Root/H1.
55- Link .outgoing (kind = "hierarchy" , tag = "down :Root/H1" ),
55+ Link .outgoing (kind = "hierarchy" , tag = "c :Root/H1" ),
5656 # Path2 is linked down to by Root
57- Link .incoming (kind = "hierarchy" , tag = "down :Root" ),
57+ Link .incoming (kind = "hierarchy" , tag = "c :Root" ),
5858 }
5959
6060 assert extractor .extract_one (PATH_3 ) == {
6161 # Path3 is linked to by stuff under Root
62- Link .incoming (kind = "hierarchy" , tag = "up :Root" ),
62+ Link .incoming (kind = "hierarchy" , tag = "p :Root" ),
6363 # Path3 links down to things under Root/H1.
64- Link .outgoing (kind = "hierarchy" , tag = "down :Root" ),
64+ Link .outgoing (kind = "hierarchy" , tag = "c :Root" ),
6565 }
6666
6767
@@ -70,15 +70,15 @@ def test_sibling() -> None:
7070
7171 assert extractor .extract_one (PATH_1 ) == {
7272 # Path1 links with anything else in Root/H1
73- Link .bidir (kind = "hierarchy" , tag = "sib :Root/H1" ),
73+ Link .bidir (kind = "hierarchy" , tag = "s :Root/H1" ),
7474 }
7575
7676 assert extractor .extract_one (PATH_2 ) == {
7777 # Path2 links with anything else in Root
78- Link .bidir (kind = "hierarchy" , tag = "sib :Root" ),
78+ Link .bidir (kind = "hierarchy" , tag = "s :Root" ),
7979 }
8080
8181 assert extractor .extract_one (PATH_3 ) == {
8282 # Path3 links with anything else at the top level
83- Link .bidir (kind = "hierarchy" , tag = "sib :" ),
83+ Link .bidir (kind = "hierarchy" , tag = "s :" ),
8484 }
0 commit comments