Upgrade testing deps

This commit is contained in:
ZipFile 2024-12-08 15:46:26 +00:00
parent be7abb3ec7
commit 26ffe5d8cb
4 changed files with 16 additions and 20 deletions

View File

@ -1,3 +1,3 @@
flask==2.1.3 flask
werkzeug==2.2.2 werkzeug
aiohttp aiohttp

View File

@ -2,7 +2,7 @@ from pathlib import Path
from typing import Any from typing import Any
from dependency_injector import providers from dependency_injector import providers
from pydantic import BaseSettings as PydanticSettings from pydantic_settings import BaseSettings as PydanticSettings
# Test 1: to check the getattr # Test 1: to check the getattr

View File

@ -1,11 +1,9 @@
from flask import Flask, jsonify, request, current_app, session, g from flask import Flask, jsonify, request, current_app, session, g
from flask import _request_ctx_stack, _app_ctx_stack
from dependency_injector import containers, providers from dependency_injector import containers, providers
from dependency_injector.wiring import inject, Provide from dependency_injector.wiring import inject, Provide
# This is here for testing wiring bypasses these objects without crashing # This is here for testing wiring bypasses these objects without crashing
request, current_app, session, g # noqa request, current_app, session, g # noqa
_request_ctx_stack, _app_ctx_stack # noqa
class Service: class Service:

28
tox.ini
View File

@ -7,18 +7,16 @@ envlist=
deps= deps=
pytest pytest
pytest-asyncio pytest-asyncio
# TODO: Hotfix, remove when fixed https://github.com/aio-libs/aiohttp/issues/5107
typing_extensions
httpx httpx
fastapi fastapi
flask<2.2 flask
aiohttp<=3.9.0b1 aiohttp
numpy numpy
scipy scipy
boto3 boto3
mypy_boto3_s3 mypy_boto3_s3
pydantic<2 pydantic-settings
werkzeug<=2.2.2 werkzeug
extras= extras=
yaml yaml
commands = pytest -c tests/.configs/pytest.ini commands = pytest -c tests/.configs/pytest.ini
@ -41,13 +39,13 @@ deps =
typing_extensions typing_extensions
httpx httpx
fastapi fastapi
flask<2.2 flask
aiohttp<=3.9.0b1 aiohttp
numpy numpy
scipy scipy
boto3 boto3
mypy_boto3_s3 mypy_boto3_s3
werkzeug<=2.2.2 werkzeug
commands = pytest -c tests/.configs/pytest.ini -m pydantic commands = pytest -c tests/.configs/pytest.ini -m pydantic
[testenv:coveralls] [testenv:coveralls]
@ -69,9 +67,9 @@ deps=
pytest pytest
pytest-asyncio pytest-asyncio
httpx httpx
flask<2.2 flask
pydantic<2 pydantic-settings
werkzeug<=2.2.2 werkzeug
fastapi fastapi
boto3 boto3
mypy_boto3_s3 mypy_boto3_s3
@ -83,8 +81,8 @@ commands = pytest -c tests/.configs/pytest-py35.ini
[testenv:pylint] [testenv:pylint]
deps= deps=
pylint pylint
flask<2.2 flask
werkzeug<=2.2.2 werkzeug
commands= commands=
- pylint -f colorized src/dependency_injector - pylint -f colorized src/dependency_injector
@ -105,7 +103,7 @@ commands=
[testenv:mypy] [testenv:mypy]
deps= deps=
typing_extensions typing_extensions
pydantic<2 pydantic-settings
mypy mypy
commands= commands=
mypy tests/typing mypy tests/typing