From c1b8ad29846cd4b50f69122cdc4efa7cf59c0804 Mon Sep 17 00:00:00 2001 From: missytake Date: Sat, 1 Apr 2023 14:40:02 +0200 Subject: [PATCH] [tests] Disable trio backend for AnyIO --- backend/setup.cfg | 1 - backend/tests/conftest.py | 5 +++++ setup.sh | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/setup.cfg b/backend/setup.cfg index 7a4f884..6f11b83 100644 --- a/backend/setup.cfg +++ b/backend/setup.cfg @@ -66,7 +66,6 @@ commands = deps = pytest pytest-asyncio - trio commands = pytest tests diff --git a/backend/tests/conftest.py b/backend/tests/conftest.py index f715e13..68d48ef 100644 --- a/backend/tests/conftest.py +++ b/backend/tests/conftest.py @@ -25,6 +25,11 @@ def client(): return TestClient(app) +@fixture(scope="module") +def anyio_backend(): + return "asyncio" + + @fixture(scope="module") def asyncclient(): Mapping.drop_all() diff --git a/setup.sh b/setup.sh index 553e0f8..13b674f 100755 --- a/setup.sh +++ b/setup.sh @@ -6,4 +6,4 @@ ln -sf ../../git-hooks/commit-msg .git/hooks/commit-msg # create virtualenv 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