• Home
  • Raw
  • Download

Lines Matching +full:pytest +full:- +full:test

12 import pytest
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")
37 # Make "foo" show up before "foo/test.html".
42 e.get_template("foo/test.html")
48 tmpl = env.get_template("test.html")
50 pytest.raises(TemplateNotFound, env.get_template, "missing.html")
56 pytest.raises(TemplateNotFound, env.get_template, "missing.html")
60 tmpl = env.get_template("a/test.html")
64 pytest.raises(TemplateNotFound, env.get_template, "missing")
73 env = Environment(loader=TestLoader(), cache_size=-1)
117 pytest.raises(TemplateNotFound, split_template_path, "../foo")
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")
163 os.utime(os.path.join(self.searchpath, "test.html"), (time.time(), time.time()))
164 tmpl3 = env.get_template("test.html")
167 @pytest.mark.parametrize(
170 ("utf-8", "文字化け"),
171 ("iso-8859-1", "æ\x96\x87\xe5\xad\x97\xe5\x8c\x96\xe3\x81\x91"),
207 'Compiled "a/foo/test.html" as '
217 tmpl1 = self.reg_env.get_template("a/test.html")
218 tmpl2 = self.mod_env.get_template("a/test.html")
239 self.mod_env.get_template("a/test.html")
240 key = loaders.ModuleLoader.get_template_key("a/test.html")
263 tmpl1 = self.mod_env.get_template("a/test.html")
273 "DICT": loaders.DictLoader({"test.html": "DICT_TEMPLATE"}),
276 tmpl1 = self.mod_env.get_template("MOD/a/test.html")
278 tmpl2 = self.mod_env.get_template("DICT/test.html")
306 @pytest.fixture()
312 @pytest.mark.parametrize(
313 ("template", "expect"), [("foo/test.html", "FOO"), ("test.html", "BAR")]
324 assert "foo/test.html" in templates
325 assert "test.html" in templates
328 @pytest.fixture()
336 @pytest.mark.parametrize(
337 ("template", "expect"), [("foo/test.html", "FOO"), ("test.html", "BAR")]
346 @pytest.mark.xfail(
352 assert package_zip_loader.list_templates() == ["foo/test.html", "test.html"]
381 assert "test.html" in package_loader.list_templates()