mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-16 20:11:20 +08:00
Upgrade pytest-asyncio usage
This commit is contained in:
@ -2,6 +2,7 @@ from typing import Any, AsyncGenerator, Dict, cast
|
||||
|
||||
import httpx
|
||||
import pytest
|
||||
import pytest_asyncio
|
||||
from fastapi import FastAPI, status
|
||||
|
||||
from fastapi_users.exceptions import (
|
||||
@ -14,8 +15,7 @@ from fastapi_users.router import ErrorCode, get_verify_router
|
||||
from tests.conftest import AsyncMethodMocker, User, UserManagerMock, UserModel
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@pytest.mark.asyncio
|
||||
@pytest_asyncio.fixture
|
||||
async def test_app_client(
|
||||
get_user_manager,
|
||||
get_test_client,
|
||||
|
Reference in New Issue
Block a user