We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b28502 commit ba1b01dCopy full SHA for ba1b01d
1 file changed
tests/test_lookup.py
@@ -97,3 +97,17 @@ def test_lookup_enrich():
97
template: !Var item
98
''')
99
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