Skip to content

Commit b291b0b

Browse files
japsuakx
authored andcommitted
add failing test for/related to #15
1 parent b5d7e9a commit b291b0b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/test_lookup.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,17 @@ def test_lookup_enrich():
102102
'''
103103
)
104104
assert template.enrich({}) == [{'should_contain_5': [5]}]
105+
106+
107+
@pytest.mark.xfail
108+
def test_recursive_data_structure():
109+
template = Template.parse('''
110+
!Defaults
111+
x:
112+
y: 5
113+
x: !Var x
114+
---
115+
five: !Lookup x.y
116+
also_five: !Lookup x.x.x.x.x.y
117+
''')
118+
assert template.enrich({}) == [{'five': 5, 'also_five': 5}]

0 commit comments

Comments
 (0)