• Home
  • Raw
  • Download

Lines Matching refs:test_env_async

118 def test_env_async():  function
134 def test_context_imports(self, test_env_async): argument
135 t = test_env_async.from_string('{% import "module" as m %}{{ m.test() }}')
137 t = test_env_async.from_string(
141 t = test_env_async.from_string(
145 t = test_env_async.from_string('{% from "module" import test %}{{ test() }}')
147 t = test_env_async.from_string(
151 t = test_env_async.from_string(
156 def test_trailing_comma(self, test_env_async): argument
157 test_env_async.from_string('{% from "foo" import bar, baz with context %}')
158 test_env_async.from_string('{% from "foo" import bar, baz, with context %}')
159 test_env_async.from_string('{% from "foo" import bar, with context %}')
160 test_env_async.from_string('{% from "foo" import bar, with, context %}')
161 test_env_async.from_string('{% from "foo" import bar, with with context %}')
163 def test_exports(self, test_env_async): argument
165 test_env_async.from_string(
183 def test_context_include(self, test_env_async): argument
184 t = test_env_async.from_string('{% include "header" %}')
186 t = test_env_async.from_string('{% include "header" with context %}')
188 t = test_env_async.from_string('{% include "header" without context %}')
191 def test_choice_includes(self, test_env_async): argument
192 t = test_env_async.from_string('{% include ["missing", "header"] %}')
195 t = test_env_async.from_string(
200 t = test_env_async.from_string('{% include ["missing", "missing2"] %}')
212 t = test_env_async.from_string('{% include ["missing", "header"] %}')
214 t = test_env_async.from_string("{% include x %}")
216 t = test_env_async.from_string('{% include [x, "header"] %}')
218 t = test_env_async.from_string("{% include x %}")
220 t = test_env_async.from_string("{% include x %}")
222 t = test_env_async.from_string("{% include [x] %}")
225 def test_include_ignoring_missing(self, test_env_async): argument
226 t = test_env_async.from_string('{% include "missing" %}')
229 t = test_env_async.from_string(
234 def test_context_include_with_overrides(self, test_env_async): argument
245 def test_unoptimized_scopes(self, test_env_async): argument
246 t = test_env_async.from_string(
280 def test_simple(self, test_env_async): argument
281 tmpl = test_env_async.from_string("{% for item in seq %}{{ item }}{% endfor %}")
284 def test_else(self, test_env_async): argument
285 tmpl = test_env_async.from_string(
290 def test_empty_blocks(self, test_env_async): argument
291 tmpl = test_env_async.from_string(
299 def test_context_vars(self, test_env_async, transform): argument
300 t = test_env_async.from_string(
308 def test_cycling(self, test_env_async): argument
309 tmpl = test_env_async.from_string(
317 def test_lookaround(self, test_env_async): argument
318 tmpl = test_env_async.from_string(
327 def test_changed(self, test_env_async): argument
328 tmpl = test_env_async.from_string(
336 def test_scope(self, test_env_async): argument
337 tmpl = test_env_async.from_string("{% for item in seq %}{% endfor %}{{ item }}")
341 def test_varlen(self, test_env_async): argument
345 tmpl = test_env_async.from_string(
351 def test_noniter(self, test_env_async): argument
352 tmpl = test_env_async.from_string("{% for item in none %}...{% endfor %}")
355 def test_recursive(self, test_env_async): argument
356 tmpl = test_env_async.from_string(
372 def test_recursive_lookaround(self, test_env_async): argument
373 tmpl = test_env_async.from_string(
391 def test_recursive_depth0(self, test_env_async): argument
392 tmpl = test_env_async.from_string(
407 def test_recursive_depth(self, test_env_async): argument
408 tmpl = test_env_async.from_string(
423 def test_looploop(self, test_env_async): argument
424 tmpl = test_env_async.from_string(
434 def test_reversed_bug(self, test_env_async): argument
435 tmpl = test_env_async.from_string(
442 def test_loop_errors(self, test_env_async): argument
443 tmpl = test_env_async.from_string(
448 tmpl = test_env_async.from_string(
454 def test_loop_filter(self, test_env_async): argument
455 tmpl = test_env_async.from_string(
459 tmpl = test_env_async.from_string(
466 def test_scoped_special_var(self, test_env_async): argument
467 t = test_env_async.from_string(
473 def test_scoped_loop_var(self, test_env_async): argument
474 t = test_env_async.from_string(
479 t = test_env_async.from_string(
485 def test_recursive_empty_loop_iter(self, test_env_async): argument
486 t = test_env_async.from_string(
493 def test_call_in_loop(self, test_env_async): argument
494 t = test_env_async.from_string(
509 def test_scoping_bug(self, test_env_async): argument
510 t = test_env_async.from_string(
519 def test_unpacking(self, test_env_async): argument
520 tmpl = test_env_async.from_string(
525 def test_recursive_loop_filter(self, test_env_async): argument
526 t = test_env_async.from_string(
550 def test_nonrecursive_loop_filter(self, test_env_async): argument
551 t = test_env_async.from_string(
573 def test_bare_async(self, test_env_async): argument
574 t = test_env_async.from_string('{% extends "header" %}')
577 def test_awaitable_property_slicing(self, test_env_async): argument
578 t = test_env_async.from_string("{% for x in a.b[:1] %}{{ x }}{% endfor %}")
582 def test_namespace_awaitable(test_env_async): argument
584 t = test_env_async.from_string(