diff options
author | David Lord <davidism@gmail.com> | 2021-04-10 16:12:25 -0700 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2021-04-10 16:12:25 -0700 |
commit | 1932ce3dc44e16394888cf04666d9b7a1795da76 (patch) | |
tree | 240f231e7ca27ae18fa35855ea3d4a4a7eddcca1 /tests | |
parent | a9b06f4bd271de7f56347f602dd90b41c3db8327 (diff) | |
download | jinja2-inline-async.tar.gz |
async support doesn't require patchinginline-async
Diffstat (limited to 'tests')
-rw-r--r-- | tests/conftest.py | 9 | ||||
-rw-r--r-- | tests/test_async.py | 2 | ||||
-rw-r--r-- | tests/test_async_filters.py (renamed from tests/test_asyncfilters.py) | 2 |
3 files changed, 3 insertions, 10 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index ce30d8b..ddcacc2 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2,15 +2,8 @@ import os import pytest -from jinja2 import Environment from jinja2 import loaders -from jinja2.utils import have_async_gen - - -def pytest_ignore_collect(path): - if "async" in path.basename and not have_async_gen: - return True - return False +from jinja2.environment import Environment @pytest.fixture diff --git a/tests/test_async.py b/tests/test_async.py index cd243fd..f8be8df 100644 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -6,7 +6,7 @@ from jinja2 import ChainableUndefined from jinja2 import DictLoader from jinja2 import Environment from jinja2 import Template -from jinja2.asyncsupport import auto_aiter +from jinja2.async_utils import auto_aiter from jinja2.exceptions import TemplateNotFound from jinja2.exceptions import TemplatesNotFound from jinja2.exceptions import UndefinedError diff --git a/tests/test_asyncfilters.py b/tests/test_async_filters.py index f5fcbf2..5d4f332 100644 --- a/tests/test_asyncfilters.py +++ b/tests/test_async_filters.py @@ -4,7 +4,7 @@ import pytest from markupsafe import Markup from jinja2 import Environment -from jinja2.asyncsupport import auto_aiter +from jinja2.async_utils import auto_aiter async def make_aiter(iter): |