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,6 +2,7 @@ from typing import AsyncGenerator, Generic, List, Optional, Sequence
import httpx
import pytest
import pytest_asyncio
from fastapi import Depends, FastAPI, Request, status
from fastapi.security.base import SecurityBase
@ -66,8 +67,7 @@ def get_backend_user(user: UserModel):
return _get_backend_user
@pytest.fixture
@pytest.mark.asyncio
@pytest_asyncio.fixture
def get_test_auth_client(get_user_manager, get_test_client):
async def _get_test_auth_client(
backends: List[AuthenticationBackend],