()
| 112 | |
| 113 | |
| 114 | def test_async_iteration_in_templates_extended(): |
| 115 | t = Template( |
| 116 | "{% for x in rng %}{{ loop.index0 }}/{{ x }}{% endfor %}", enable_async=True |
| 117 | ) |
| 118 | stream = t.generate(rng=auto_aiter(range(1, 4))) |
| 119 | assert next(stream) == "0" |
| 120 | assert "".join(stream) == "/11/22/3" |
| 121 | |
| 122 | |
| 123 | @pytest.fixture |
nothing calls this directly
no test coverage detected