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

Method test_template_passthrough

tests/test_api.py:105–110  ·  view source on GitHub ↗
(self, env)

Source from the content-addressed store, hash-verified

103 assert expr(foo=42) == 84
104
105 def test_template_passthrough(self, env):
106 t = Template("Content")
107 assert env.get_template(t) is t
108 assert env.select_template([t]) is t
109 assert env.get_or_select_template([t]) is t
110 assert env.get_or_select_template(t) is t
111
112 def test_get_template_undefined(self, env):
113 """Passing Undefined to get/select_template raises an

Callers

nothing calls this directly

Calls 4

TemplateClass · 0.90
get_templateMethod · 0.80
select_templateMethod · 0.80

Tested by

no test coverage detected