We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 777ff7b commit e3cb9c0Copy full SHA for e3cb9c0
1 file changed
tests/test_lookup.py
@@ -102,3 +102,17 @@ def test_lookup_enrich():
102
'''
103
)
104
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