Skip to content
Myr

Merge branch '2.9-maintenance'

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 · parents 4e7fd1a, 3e9937c · 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
481 unmodified lines
482483 def test_empty_if(self, env):484 t = env.from_string('{% if foo %}{% else %}42{% endif %}')485 assert t.render(foo=False) == '42'486487 def test_set_and_include(self):488 env = Environment(loader=DictLoader({489 'inc': 'bar',490 'main': '{% set foo = "foo" %}{{ foo }}{% include "inc" %}'491 }))492 assert env.get_template('main').render() == 'foobar'