Lines Matching refs:get_template
24 tmpl = env.get_template("justdict.html")
26 pytest.raises(TemplateNotFound, env.get_template, "missing.html")
30 tmpl = env.get_template("test.html")
32 pytest.raises(TemplateNotFound, env.get_template, "missing.html")
40 e.get_template("foo")
42 e.get_template("foo/test.html")
46 tmpl = env.get_template("justdict.html")
48 tmpl = env.get_template("test.html")
50 pytest.raises(TemplateNotFound, env.get_template, "missing.html")
54 tmpl = env.get_template("justfunction.html")
56 pytest.raises(TemplateNotFound, env.get_template, "missing.html")
60 tmpl = env.get_template("a/test.html")
62 tmpl = env.get_template("b/justdict.html")
64 pytest.raises(TemplateNotFound, env.get_template, "missing")
74 tmpl = env.get_template("template")
75 assert tmpl is env.get_template("template")
77 assert tmpl is not env.get_template("template")
83 assert env.get_template("foo") is not env.get_template("foo")
89 t1 = env.get_template("one")
90 t2 = env.get_template("two")
91 assert t2 is env.get_template("two")
92 assert t1 is env.get_template("one")
93 env.get_template("three")
103 assert env.get_template("foo").render() == "one"
105 assert env.get_template("foo").render() == "two"
110 assert env.get_template("foo").render() == "one"
112 assert env.get_template("foo").render() == "two"
127 tmpl = env.get_template("test.html")
129 tmpl = env.get_template("foo/test.html")
131 pytest.raises(TemplateNotFound, env.get_template, "missing.html")
159 tmpl1 = env.get_template("test.html")
160 tmpl2 = env.get_template("test.html")
164 tmpl3 = env.get_template("test.html")
177 t = e.get_template("mojibake.txt")
217 tmpl1 = self.reg_env.get_template("a/test.html")
218 tmpl2 = self.mod_env.get_template("a/test.html")
221 tmpl1 = self.reg_env.get_template("b/justdict.html")
222 tmpl2 = self.mod_env.get_template("b/justdict.html")
239 self.mod_env.get_template("a/test.html")
263 tmpl1 = self.mod_env.get_template("a/test.html")
265 tmpl2 = self.mod_env.get_template("DICT_SOURCE")
276 tmpl1 = self.mod_env.get_template("MOD/a/test.html")
278 tmpl2 = self.mod_env.get_template("DICT/test.html")