Mercurial > piecrust2
changeset 452:55026b7bb1bf
tests: Fix Jinja2 test.
Looks like Jinja is stripping rendered output, so now that we actually skip
Jinja altogether when there's no `{` in the string, we need to adjust the
tests.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 07 Jul 2015 19:58:07 -0700 |
parents | 838f3964f400 |
children | 8351a77e13f5 |
files | tests/test_templating_jinjaengine.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_templating_jinjaengine.py Mon Jul 06 21:30:49 2015 -0700 +++ b/tests/test_templating_jinjaengine.py Tue Jul 07 19:58:07 2015 -0700 @@ -37,7 +37,7 @@ def test_layout(): contents = "Blah\n" layout = "{{content}}\nFor site: {{foo}}\n" - expected = "Blah\nFor site: bar" + expected = "Blah\n\nFor site: bar" fs = (mock_fs() .withConfig(app_config) .withAsset('templates/blah.jinja', layout)