Skip to content

Commit aebf7be

Browse files
author
Darren Cunningham
authored
fix: Bump httpx in setup.py (#207)
1 parent 5130783 commit aebf7be

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ lint-tests:
2424
python -m yapf -i --recursive tests
2525

2626
run-fauna:
27-
docker-compose -f tests/docker-compose-tests.yml up --build faunadb
27+
docker compose -f tests/docker-compose-tests.yml up --build faunadb
2828

2929
docker-test:
30-
docker-compose -f tests/docker-compose-tests.yml run --rm --build $(PYTHON_VERSION)
30+
docker compose -f tests/docker-compose-tests.yml run --rm --build $(PYTHON_VERSION)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# IMPORTANT: update setup.py too
12
iso8601==2.1.0
23
future==1.0.0
34
httpx[http2]==0.28.*

setup.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@
1515
requires = [
1616
"iso8601==2.1.0",
1717
"future==1.0.0",
18-
"httpx[http2]==0.27.*",
18+
"httpx[http2]==0.28.*",
1919
]
2020

2121
extras_require = {
2222
"lint": ["yapf==0.40.1"],
2323
"test": [
24-
"pytest==8.1.1", "pytest-env==1.1.3", "pytest-cov==5.0.0",
25-
"pytest-httpx==0.30.0", "pytest-subtests==0.12.1"
24+
"pytest==8.1.1",
25+
"pytest-env==1.1.3",
26+
"pytest-cov==5.0.0",
27+
"pytest-httpx==0.35.0",
28+
"pytest-subtests==0.12.1",
2629
]
2730
}
2831

tests/unit/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def validate_tags(request: httpx.Request):
188188
json={"data": "mocked"},
189189
)
190190

191-
httpx_mock.add_callback(validate_tags)
191+
httpx_mock.add_callback(validate_tags, is_reusable=True)
192192

193193
with httpx.Client() as mockClient:
194194
with subtests.test("should not be set"):
@@ -246,7 +246,7 @@ def validate_headers(request: httpx.Request):
246246
json={"data": "mocked"},
247247
)
248248

249-
httpx_mock.add_callback(validate_headers)
249+
httpx_mock.add_callback(validate_headers, is_reusable=True)
250250

251251
with httpx.Client() as mockClient:
252252
http_client = HTTPXClient(mockClient)

0 commit comments

Comments
 (0)