Let conftest.py in cogs/heartbeat use pytest_asyncio.fixture() to define async fixtures, instead of pytest.fixture(). This helps resolve Injabie3/lui-cogs-v3#10 because pytest_asyncio.fixture() is necessary for async fixtures to be picked up by pytest-asyncio strict mode.
Testing
All tests ran and passed with pytest-asyncio strict test discovery mode.
Summary
Let
conftest.py
incogs/heartbeat
usepytest_asyncio.fixture()
to define async fixtures, instead ofpytest.fixture()
. This helps resolve Injabie3/lui-cogs-v3#10 becausepytest_asyncio.fixture()
is necessary for async fixtures to be picked up bypytest-asyncio
strict mode.Testing
All tests ran and passed with
pytest-asyncio
strict test discovery mode.