Skip to content

Commit

Permalink
Add test for noahmorrison#48
Browse files Browse the repository at this point in the history
  • Loading branch information
dmorrison42 committed Mar 23, 2019
1 parent 3acc539 commit 97d4f14
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,17 @@ def test_unicode_partial(self):

self.assertEqual(result, expected)

def test_missing_key_partial(self):
args = {
'template': 'before, {{> with_missing_key }}, after',
'partials_dict': {'with_missing_key': '{{#missing_key}}bloop{{/missing_key}}'}
}

result = chevron.render(**args)
expected = 'before, , after'

self.assertEqual(result, expected)

def test_listed_data(self):
args = {
'template': '{{# . }}({{ . }}){{/ . }}',
Expand Down

0 comments on commit 97d4f14

Please sign in to comment.