Port tests to async #25

Merged
vmann merged 8 commits from async-pytest-23 into development 2023-04-01 13:57:15 +00:00
3 changed files with 6 additions and 2 deletions
Showing only changes of commit c1b8ad2984 - Show all commits

View file

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

View file

@ -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()

View file

@ -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