(run_async_fn)
| 36 | |
| 37 | |
| 38 | def test_await_on_calls(run_async_fn): |
| 39 | t = Template("{{ async_func() + normal_func() }}", enable_async=True) |
| 40 | |
| 41 | async def async_func(): |
| 42 | return 42 |
| 43 | |
| 44 | def normal_func(): |
| 45 | return 23 |
| 46 | |
| 47 | async def func(): |
| 48 | return await t.render_async(async_func=async_func, normal_func=normal_func) |
| 49 | |
| 50 | rv = run_async_fn(func) |
| 51 | assert rv == "65" |
| 52 | |
| 53 | |
| 54 | def test_await_on_calls_normal_render(): |
nothing calls this directly
no test coverage detected