Skip to content

Commit 1f7a908

Browse files
committed
Remove requests from direct dependencies, promote httpx to common dependencies
1 parent b1d9a6a commit 1f7a908

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

requirements-common.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ fastapi[standard]==0.115.6
1212
firebase-admin==6.5.0 # Firebase is used for push notification
1313
google-auth-oauthlib==1.2.1
1414
helloasso-python==1.0.5
15+
httpx==0.27.0
1516
icalendar==5.0.13
1617
jellyfish==1.0.4 # String Matching
1718
Jinja2==3.1.6 # template engine for html files
@@ -25,7 +26,6 @@ pypdf==4.3.1
2526
python-dotenv==1.0.1 # load environment variables from .env file
2627
python-multipart==0.0.18 # a form data parser, as oauth flow requires form-data parameters
2728
redis==5.0.8
28-
requests==2.32.4
2929
sqlalchemy-utils == 0.41.2
3030
SQLAlchemy[asyncio]==2.0.32 # [asyncio] allows greenlet to be installed on Apple M1 devices.
3131
unidecode==1.3.8

requirements-dev.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
aiosqlite==0.20.0
33
boto3-stubs[essential]==1.38.23
44
google-auth-stubs==0.3.0
5-
httpx==0.27.0 # needed for tests as a replacement of requests in TestClient
65
mypy[faster-cache]==1.16.0
76
pytest-alembic==0.12.1
87
pytest-asyncio==0.26.0
@@ -15,4 +14,3 @@ types-Authlib==1.5.0.20250516
1514
types-fpdf2==2.8.3.20250516
1615
types-psutil==7.0.0.20250601
1716
types-redis==4.6.0.20241004
18-
types-requests==2.32.0.20250515

tests/test_payment.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
HelloAssoApiV5ModelsCartsInitCheckoutResponse,
1313
)
1414
from pytest_mock import MockerFixture
15-
from requests import Response
1615
from sqlalchemy.ext.asyncio import AsyncSession
1716

1817
from app.core.payment import cruds_payment, models_payment, schemas_payment
@@ -495,8 +494,6 @@ def init_a_checkout_side_effect(
495494
init_checkout_body: HelloAssoApiV5ModelsCartsInitCheckoutBody,
496495
):
497496
if init_checkout_body.payer is not None:
498-
r = Response()
499-
r.status_code = 400
500497
raise UnauthorizedException
501498
return HelloAssoApiV5ModelsCartsInitCheckoutResponse(
502499
id=7,

0 commit comments

Comments
 (0)