Skip to content

Commit

Permalink
add failing test for/related to #15
Browse files Browse the repository at this point in the history
  • Loading branch information
japsu authored and akx committed Jan 11, 2022
1 parent b5d7e9a commit b291b0b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,17 @@ def test_lookup_enrich():
'''
)
assert template.enrich({}) == [{'should_contain_5': [5]}]


@pytest.mark.xfail
def test_recursive_data_structure():
template = Template.parse('''
!Defaults
x:
y: 5
x: !Var x
---
five: !Lookup x.y
also_five: !Lookup x.x.x.x.x.y
''')
assert template.enrich({}) == [{'five': 5, 'also_five': 5}]

0 comments on commit b291b0b

Please sign in to comment.