Repository: fauna/fauna-python (language: python)

Issue:
feat: Bump httpx version
<!--- Provide a general summary of your changes in the title. -->

### Description

Update HTTPX dependency to a newer version

### Motivation and context

Solve for #205 

### How was the change tested?

Cutting the PR to let tests run 

### Screenshots (if appropriate):

### Change types
<!--- What types of changes does your code introduce? Put an `x` in any boxes that apply: -->
* - [ ] Bug fix (non-breaking change that fixes an issue)
* - [x] New feature (non-breaking change that adds functionality)
* - [ ] Breaking change (backwards-incompatible fix or feature)

### Checklist:
<!--- Review the following points. Put an `x` in any boxes that apply. -->
<!--- If you're unsure, don't hesitate to ask. We're here to help! -->
* - [x] My code follows the code style of this project.
* - [ ] My change requires a change to Fauna documentation.
* - [ ] My change requires a change to the README, and I have updated it accordingly.

----
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.





Discussion / hints:

Fix patch:
diff --git a/Makefile b/Makefile
index 0418e32a..1e1c48b6 100644
--- a/Makefile
+++ b/Makefile
@@ -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)
diff --git a/requirements.txt b/requirements.txt
index 9099ed7b..1b45259e 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,4 @@
+# IMPORTANT: update setup.py too
 iso8601==2.1.0
 future==1.0.0
 httpx[http2]==0.28.*
diff --git a/setup.py b/setup.py
index 119ec9c5..f87bc58d 100644
--- a/setup.py
+++ b/setup.py
@@ -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",
     ]
 }
 


Test patch:
diff --git a/tests/unit/test_client.py b/tests/unit/test_client.py
index 8cfd636a..deead0cd 100644
--- a/tests/unit/test_client.py
+++ b/tests/unit/test_client.py
@@ -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"):
@@ -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)