Skip to content
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 Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ lint-tests:
python -m yapf -i --recursive tests

run-fauna:
docker-compose -f tests/docker-compose-tests.yml up --build faunadb
docker compose -f tests/docker-compose-tests.yml up --build faunadb

docker-test:
docker-compose -f tests/docker-compose-tests.yml run --rm --build $(PYTHON_VERSION)
docker compose -f tests/docker-compose-tests.yml run --rm --build $(PYTHON_VERSION)
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# IMPORTANT: update setup.py too
iso8601==2.1.0
future==1.0.0
httpx[http2]==0.28.*
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@
requires = [
"iso8601==2.1.0",
"future==1.0.0",
"httpx[http2]==0.27.*",
"httpx[http2]==0.28.*",
]

extras_require = {
"lint": ["yapf==0.40.1"],
"test": [
"pytest==8.1.1", "pytest-env==1.1.3", "pytest-cov==5.0.0",
"pytest-httpx==0.30.0", "pytest-subtests==0.12.1"
"pytest==8.1.1",
"pytest-env==1.1.3",
"pytest-cov==5.0.0",
"pytest-httpx==0.35.0",
"pytest-subtests==0.12.1",
]
}

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def validate_tags(request: httpx.Request):
json={"data": "mocked"},
)

httpx_mock.add_callback(validate_tags)
httpx_mock.add_callback(validate_tags, is_reusable=True)

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

httpx_mock.add_callback(validate_headers)
httpx_mock.add_callback(validate_headers, is_reusable=True)

with httpx.Client() as mockClient:
http_client = HTTPXClient(mockClient)
Expand Down
Loading