[tests] Disable trio backend for AnyIO

This commit is contained in:
missytake 2023-04-01 14:40:02 +02:00
parent 48e3b6f6bc
commit c1b8ad2984
3 changed files with 6 additions and 2 deletions

View file

@ -66,7 +66,6 @@ commands =
deps = deps =
pytest pytest
pytest-asyncio pytest-asyncio
trio
commands = commands =
pytest tests pytest tests

View file

@ -25,6 +25,11 @@ def client():
return TestClient(app) return TestClient(app)
@fixture(scope="module")
def anyio_backend():
return "asyncio"
@fixture(scope="module") @fixture(scope="module")
def asyncclient(): def asyncclient():
Mapping.drop_all() Mapping.drop_all()

View file

@ -6,4 +6,4 @@ ln -sf ../../git-hooks/commit-msg .git/hooks/commit-msg
# create virtualenv # create virtualenv
virtualenv -p $(which python3.10) backend/.venv virtualenv -p $(which python3.10) backend/.venv
backend/.venv/bin/pip install tox black pytest pytest-aiohttp trio backend/.venv/bin/pip install tox black pytest pytest-aiohttp