Skip to content

Commit ba1b01d

Browse files
committed
add failing test for/related to #15
1 parent 0b28502 commit ba1b01d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tests/test_lookup.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,17 @@ def test_lookup_enrich():
9797
template: !Var item
9898
''')
9999
assert template.enrich({}) == [{'should_contain_5': [5]}]
100+
101+
102+
@pytest.mark.xfail
103+
def test_recursive_data_structure():
104+
template = Template.parse('''
105+
!Defaults
106+
x:
107+
y: 5
108+
x: !Var x
109+
---
110+
five: !Lookup x.y
111+
also_five: !Lookup x.x.x.x.x.y
112+
''')
113+
assert template.enrich({}) == [{'five': 5, 'also_five': 5}]

0 commit comments

Comments
 (0)