You only need to mark your tests as async @pytest.mark.asyncio async def test_app(create_x, auth): api_client, x_id = create_x resp = await ...
確定! 回上一頁