Plugins
pytest-asyncio
import pytest
@pytest.fixture
def some_async_data():
return some_async_function()
@pytest.mark.asyncio
async def test_some(some_async_data):
obj = await some_async_data
resp = await some_async_function()
assert resppytest-mock
Last updated