Skip to content
Myr

Added regression test for slicing of attributes

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

authored by Armin Ronacher · committed by David Lord · parent 05dee9b · Browse files · 1 file+4 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+4 added−0 removed

  • tests:+4 added−0 removed

1 file+4 added−0 removed

modified:tests/test_async.py+4 added
577 unmodified lines
578579 def test_bare_async(self, test_env_async):580 t = test_env_async.from_string('{% extends "header" %}')581 assert t.render(foo=42) == "[42|23]"582583 def test_awaitable_property_slicing(self, test_env_async):584 t = test_env_async.from_string("{% for x in a.b[:1] %}{{ x }}{% endfor %}")585 assert t.render(a=dict(b=[1, 2, 3])) == "1"