(run_async_fn)
| 24 | |
| 25 | |
| 26 | def test_basic_async(run_async_fn): |
| 27 | t = Template( |
| 28 | "{% for item in [1, 2, 3] %}[{{ item }}]{% endfor %}", enable_async=True |
| 29 | ) |
| 30 | |
| 31 | async def func(): |
| 32 | return await t.render_async() |
| 33 | |
| 34 | rv = run_async_fn(func) |
| 35 | assert rv == "[1][2][3]" |
| 36 | |
| 37 | |
| 38 | def test_await_on_calls(run_async_fn): |
nothing calls this directly
no test coverage detected