mirror of
				https://github.com/fastapi-users/fastapi-users.git
				synced 2025-10-31 17:38:30 +08:00 
			
		
		
		
	Upgrade pytest-asyncio usage
This commit is contained in:
		| @ -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]: | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 François Voron
					François Voron