Run pytest with asyncio mode set to auto

My understanding is that currently all of the coroutine functions decorated with `@pytest.fixture` are being skipped because pytest-asyncio is running in strict mode (https://pytest-asyncio.readthedocs.io/en/latest/concepts.html#test-discovery-modes). To fix this, you can either change all those declarations to `@pytest_asyncio.fixture` or add this config file, so I went with the least invasive change to a project I'm unfamiliar with.
This commit is contained in:
Adam B 2023-09-01 12:36:33 -04:00 committed by GitHub
parent 3968c69aa8
commit 1d24a3f529
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
pytest.ini Normal file
View File

@ -0,0 +1,2 @@
[pytest]
asyncio_mode = auto