Skip to content
Myr

Added test for macro async support

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent d1b8f08 · Browse files · 1 file+12 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−0 removed

  • tests:+12 added−0 removed

1 file+12 added−0 removed

modified:tests/test_async.py+12 added
38 unmodified lines
39 )4041 rv = run(func)42 assert rv == '65'434445@pytest.mark.skipif(not have_async_gen, reason='No async generators')46def test_await_and_macros():47 t = Template('{% macro foo(x) %}[{{ x }}]{% endmacro %}{{ foo(42) }}',48 enable_async=True)4950 async def func():51 return await t.render_async()5253 rv = run(func)54 assert rv == '[42]'