From: David Lord Date: Thu, 6 Feb 2020 04:39:04 +0000 (-0800) Subject: Merge branch '2.11.x' X-Git-Tag: 3.0.0rc1~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e08dadd220563609a67bc32d4d1c0abe91699231;p=thirdparty%2Fjinja.git Merge branch '2.11.x' --- e08dadd220563609a67bc32d4d1c0abe91699231 diff --cc tests/test_api.py index 387fb3f1,058ec56c..0655c479 --- a/tests/test_api.py +++ b/tests/test_api.py @@@ -24,9 -25,7 +24,7 @@@ from jinja2.utils import environmentfun from jinja2.utils import evalcontextfunction - @pytest.mark.api - @pytest.mark.extended -class TestExtendedAPI(object): +class TestExtendedAPI: def test_item_and_attribute(self, env): from jinja2.sandbox import SandboxedEnvironment @@@ -161,9 -161,7 +159,7 @@@ t.render(total=MAX_RANGE + 1) - @pytest.mark.api - @pytest.mark.meta -class TestMeta(object): +class TestMeta: def test_find_undeclared_variables(self, env): ast = env.parse("{% set foo = 42 %}{{ bar + foo }}") x = meta.find_undeclared_variables(ast) @@@ -216,9 -214,7 +212,7 @@@ assert list(i) == ["foo.html", "bar.html", None] - @pytest.mark.api - @pytest.mark.streaming -class TestStreaming(object): +class TestStreaming: def test_basic_streaming(self, env): t = env.from_string( "