Skip to content
Myr

Added a missing test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 2ce56dd · Browse files · 1 file+7 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−0 removed

  • tests:+7 added−0 removed

1 file+7 added−0 removed

modified:tests/test_regression.py+7 added
326 unmodified lines
327 {%- endmacro %}328 {{ test(1, 2) }}|{{ test(1, 2, 3) }}329 ''')330 assert t.render().strip() == '45|6'331332 def test_macro_escaping(self):333 env = Environment(334 autoescape=lambda x: False, extensions=['jinja2.ext.autoescape'])335 template = "{% macro m() %}<html>{% endmacro %}"336 template += "{% autoescape true %}{{ m() }}{% endautoescape %}"337 assert env.from_string(template).render()