diff tests/test_templating_jinjaengine.py @ 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 4b1019bb2533
children ab5c6a8ae90a
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)