Skip to content

Commit 87741ed

Browse files
authored
Upgrade testing deps (#837)
1 parent be7abb3 commit 87741ed

File tree

4 files changed

+16
-20
lines changed

4 files changed

+16
-20
lines changed

requirements-ext.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
flask==2.1.3
2-
werkzeug==2.2.2
1+
flask
2+
werkzeug
33
aiohttp

tests/typing/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from typing import Any
33

44
from dependency_injector import providers
5-
from pydantic import BaseSettings as PydanticSettings
5+
from pydantic_settings import BaseSettings as PydanticSettings
66

77

88
# Test 1: to check the getattr

tests/unit/samples/wiringflask/web.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
from flask import Flask, jsonify, request, current_app, session, g
2-
from flask import _request_ctx_stack, _app_ctx_stack
32
from dependency_injector import containers, providers
43
from dependency_injector.wiring import inject, Provide
54

65
# This is here for testing wiring bypasses these objects without crashing
76
request, current_app, session, g # noqa
8-
_request_ctx_stack, _app_ctx_stack # noqa
97

108

119
class Service:

tox.ini

+13-15
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,16 @@ envlist=
77
deps=
88
pytest
99
pytest-asyncio
10-
# TODO: Hotfix, remove when fixed https://github.com/aio-libs/aiohttp/issues/5107
11-
typing_extensions
1210
httpx
1311
fastapi
14-
flask<2.2
15-
aiohttp<=3.9.0b1
12+
flask
13+
aiohttp
1614
numpy
1715
scipy
1816
boto3
1917
mypy_boto3_s3
20-
pydantic<2
21-
werkzeug<=2.2.2
18+
pydantic-settings
19+
werkzeug
2220
extras=
2321
yaml
2422
commands = pytest -c tests/.configs/pytest.ini
@@ -41,13 +39,13 @@ deps =
4139
typing_extensions
4240
httpx
4341
fastapi
44-
flask<2.2
45-
aiohttp<=3.9.0b1
42+
flask
43+
aiohttp
4644
numpy
4745
scipy
4846
boto3
4947
mypy_boto3_s3
50-
werkzeug<=2.2.2
48+
werkzeug
5149
commands = pytest -c tests/.configs/pytest.ini -m pydantic
5250

5351
[testenv:coveralls]
@@ -69,9 +67,9 @@ deps=
6967
pytest
7068
pytest-asyncio
7169
httpx
72-
flask<2.2
73-
pydantic<2
74-
werkzeug<=2.2.2
70+
flask
71+
pydantic-settings
72+
werkzeug
7573
fastapi
7674
boto3
7775
mypy_boto3_s3
@@ -83,8 +81,8 @@ commands = pytest -c tests/.configs/pytest-py35.ini
8381
[testenv:pylint]
8482
deps=
8583
pylint
86-
flask<2.2
87-
werkzeug<=2.2.2
84+
flask
85+
werkzeug
8886
commands=
8987
- pylint -f colorized src/dependency_injector
9088

@@ -105,7 +103,7 @@ commands=
105103
[testenv:mypy]
106104
deps=
107105
typing_extensions
108-
pydantic<2
106+
pydantic-settings
109107
mypy
110108
commands=
111109
mypy tests/typing

0 commit comments

Comments
 (0)