MCPcopy
hub / github.com/pallets/jinja / test_keyword_folding

Method test_keyword_folding

tests/test_regression.py:85–91  ·  view source on GitHub ↗
(self, env)

Source from the content-addressed store, hash-verified

83
84class TestBug:
85 def test_keyword_folding(self, env):
86 env = Environment()
87 env.filters["testing"] = lambda value, some: value + some
88 assert (
89 env.from_string("{{ 'test'|testing(some='stuff') }}").render()
90 == "teststuff"
91 )
92
93 def test_extends_output_bugs(self, env):
94 env = Environment(

Callers

nothing calls this directly

Calls 3

from_stringMethod · 0.95
EnvironmentClass · 0.90
renderMethod · 0.45

Tested by

no test coverage detected