Upgrade pytest-asyncio usage

This commit is contained in:
François Voron
2024-03-11 14:09:55 +01:00
parent 48d4484cad
commit 352b22f01a
10 changed files with 19 additions and 27 deletions

View File

@ -2,14 +2,14 @@ from typing import Any, AsyncGenerator, Dict, cast
import httpx
import pytest
import pytest_asyncio
from fastapi import FastAPI, status
from fastapi_users.router import ErrorCode, get_register_router
from tests.conftest import User, UserCreate
@pytest.fixture
@pytest.mark.asyncio
@pytest_asyncio.fixture
async def test_app_client(
get_user_manager, get_test_client
) -> AsyncGenerator[httpx.AsyncClient, None]: