Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade testing deps #837

Merged
merged 1 commit into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions requirements-ext.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
flask==2.1.3
werkzeug==2.2.2
flask
werkzeug
aiohttp
2 changes: 1 addition & 1 deletion tests/typing/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Any

from dependency_injector import providers
from pydantic import BaseSettings as PydanticSettings
from pydantic_settings import BaseSettings as PydanticSettings


# Test 1: to check the getattr
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/samples/wiringflask/web.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
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.wiring import inject, Provide

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


class Service:
Expand Down
28 changes: 13 additions & 15 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,16 @@ envlist=
deps=
pytest
pytest-asyncio
# TODO: Hotfix, remove when fixed https://github.com/aio-libs/aiohttp/issues/5107
typing_extensions
httpx
fastapi
flask<2.2
aiohttp<=3.9.0b1
flask
aiohttp
numpy
scipy
boto3
mypy_boto3_s3
pydantic<2
werkzeug<=2.2.2
pydantic-settings
werkzeug
extras=
yaml
commands = pytest -c tests/.configs/pytest.ini
Expand All @@ -41,13 +39,13 @@ deps =
typing_extensions
httpx
fastapi
flask<2.2
aiohttp<=3.9.0b1
flask
aiohttp
numpy
scipy
boto3
mypy_boto3_s3
werkzeug<=2.2.2
werkzeug
commands = pytest -c tests/.configs/pytest.ini -m pydantic

[testenv:coveralls]
Expand All @@ -69,9 +67,9 @@ deps=
pytest
pytest-asyncio
httpx
flask<2.2
pydantic<2
werkzeug<=2.2.2
flask
pydantic-settings
werkzeug
fastapi
boto3
mypy_boto3_s3
Expand All @@ -83,8 +81,8 @@ commands = pytest -c tests/.configs/pytest-py35.ini
[testenv:pylint]
deps=
pylint
flask<2.2
werkzeug<=2.2.2
flask
werkzeug
commands=
- pylint -f colorized src/dependency_injector

Expand All @@ -105,7 +103,7 @@ commands=
[testenv:mypy]
deps=
typing_extensions
pydantic<2
pydantic-settings
mypy
commands=
mypy tests/typing
Loading