diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..16c88ba --- /dev/null +++ b/pytest.ini @@ -0,0 +1,3 @@ +# Handling DeprecationWarning 'asyncio_mode' default value +[pytest] +asyncio_mode = strict diff --git a/requirements.txt b/requirements.txt index 903628b..8754e65 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,5 @@ -aiohttp>=3.7.2 -fastapi -pydantic -starlette>=0.13.6 -uvicorn -requests>=2.25.0 -websockets -tenacity>=6.3.1 +fastapi>=0.78.0,<1 +pydantic>=1.9.1,<2 +uvicorn>=0.17.6,<1 +websockets>=10.3,<11 +tenacity>=8.0.1,<9 diff --git a/tests/advanced_rpc_test.py b/tests/advanced_rpc_test.py index be2e435..c753b25 100644 --- a/tests/advanced_rpc_test.py +++ b/tests/advanced_rpc_test.py @@ -12,7 +12,6 @@ import uvicorn from fastapi import (APIRouter, Depends, FastAPI, Header, HTTPException, WebSocket) -from starlette import responses from fastapi_websocket_rpc.rpc_methods import RpcUtilityMethods from fastapi_websocket_rpc.websocket_rpc_client import WebSocketRpcClient