commit | 16e4daebc46377df496bccaa9747a72869b88548 | [log] [tgz] |
---|---|---|
author | Armin Ronacher <armin.ronacher@active-4.com> | Sun Jan 08 14:22:29 2017 +0100 |
committer | Armin Ronacher <armin.ronacher@active-4.com> | Sun Jan 08 14:22:29 2017 +0100 |
tree | 54d21cd728ab2a444cbdaf950496ad5ed093198c | |
parent | 53e2572b5c8bcb82ee4ba44c212c90900c33dd92 [diff] |
Optimize the with test
diff --git a/tests/test_core_tags.py b/tests/test_core_tags.py index edbcad6..f857cc7 100644 --- a/tests/test_core_tags.py +++ b/tests/test_core_tags.py
@@ -369,8 +369,7 @@ @pytest.mark.with_ class TestWith(object): - def test_with(self): - env = Environment(extensions=['jinja2.ext.with_']) + def test_with(self, env): tmpl = env.from_string('''\ {% with a=42, b=23 -%} {{ a }} = {{ b }}