Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-httpx for 
openSUSE:Factory checked in at 2024-12-16 19:17:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-httpx (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-httpx.new.29675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-httpx"

Mon Dec 16 19:17:05 2024 rev:12 rq:1231288 version:0.35.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-httpx/python-pytest-httpx.changes  
2024-11-28 22:42:34.813536408 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-httpx.new.29675/python-pytest-httpx.changes
       2024-12-16 19:17:10.138543991 +0100
@@ -1,0 +2,6 @@
+Mon Dec 16 04:00:04 UTC 2024 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Update to 0.35.0:
+  * Requires httpx==0.28.*
+
+-------------------------------------------------------------------

Old:
----
  pytest_httpx-0.34.0-gh.tar.gz

New:
----
  pytest_httpx-0.35.0-gh.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-httpx.spec ++++++
--- /var/tmp/diff_new_pack.CBLac8/_old  2024-12-16 19:17:11.738610326 +0100
+++ /var/tmp/diff_new_pack.CBLac8/_new  2024-12-16 19:17:11.738610326 +0100
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-pytest-httpx
-Version:        0.34.0
+Version:        0.35.0
 Release:        0
 Summary:        Send responses to httpx
 License:        MIT
@@ -30,13 +30,13 @@
 BuildRequires:  %{python_module wheel}
 BuildRequires:  python-rpm-macros
 # SECTION test requirements
-BuildRequires:  %{python_module httpx >= 0.27.0 with %python-httpx < 0.28}
+BuildRequires:  %{python_module httpx >= 0.28.0 with %python-httpx < 0.29}
 BuildRequires:  %{python_module pytest >= 8.0}
 BuildRequires:  %{python_module pytest-asyncio >= 0.24.0}
 # /SECTION
 BuildRequires:  fdupes
 Requires:       python-pytest >= 8.0
-Requires:       (python-httpx >= 0.27.0 with python-httpx < 0.28)
+Requires:       (python-httpx >= 0.28.0 with python-httpx < 0.29)
 BuildArch:      noarch
 %python_subpackages
 

++++++ pytest_httpx-0.34.0-gh.tar.gz -> pytest_httpx-0.35.0-gh.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest_httpx-0.34.0/CHANGELOG.md 
new/pytest_httpx-0.35.0/CHANGELOG.md
--- old/pytest_httpx-0.34.0/CHANGELOG.md        2024-11-18 19:49:24.000000000 
+0100
+++ new/pytest_httpx-0.35.0/CHANGELOG.md        2024-11-28 20:16:16.000000000 
+0100
@@ -6,6 +6,10 @@
 
 ## [Unreleased]
 
+## [0.35.0] - 2024-11-28
+### Changed
+- Requires [`httpx`](https://www.python-httpx.org)==0.28.\*
+
 ## [0.34.0] - 2024-11-18
 ### Added
 - `is_optional` parameter is now available on responses and callbacks 
registration. Allowing to add optional responses while keeping other responses 
as mandatory. Refer to documentation for more details.
@@ -404,7 +408,8 @@
 ### Added
 - First release, should be considered as unstable for now as design might 
change.
 
-[Unreleased]: https://github.com/Colin-b/pytest_httpx/compare/v0.34.0...HEAD
+[Unreleased]: https://github.com/Colin-b/pytest_httpx/compare/v0.35.0...HEAD
+[0.35.0]: https://github.com/Colin-b/pytest_httpx/compare/v0.34.0...v0.35.0
 [0.34.0]: https://github.com/Colin-b/pytest_httpx/compare/v0.33.0...v0.34.0
 [0.33.0]: https://github.com/Colin-b/pytest_httpx/compare/v0.32.0...v0.33.0
 [0.32.0]: https://github.com/Colin-b/pytest_httpx/compare/v0.31.2...v0.32.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest_httpx-0.34.0/pyproject.toml 
new/pytest_httpx-0.35.0/pyproject.toml
--- old/pytest_httpx-0.34.0/pyproject.toml      2024-11-18 19:49:24.000000000 
+0100
+++ new/pytest_httpx-0.35.0/pyproject.toml      2024-11-28 20:16:16.000000000 
+0100
@@ -37,7 +37,7 @@
     "Typing :: Typed",
 ]
 dependencies = [
-    "httpx==0.27.*",
+    "httpx==0.28.*",
     "pytest==8.*",
 ]
 dynamic = ["version"]
@@ -51,7 +51,7 @@
 [project.optional-dependencies]
 testing = [
     # Used to check coverage
-    "pytest-cov==5.*",
+    "pytest-cov==6.*",
     # Used to run async tests
     "pytest-asyncio==0.24.*",
 ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest_httpx-0.34.0/pytest_httpx/version.py 
new/pytest_httpx-0.35.0/pytest_httpx/version.py
--- old/pytest_httpx-0.34.0/pytest_httpx/version.py     2024-11-18 
19:49:24.000000000 +0100
+++ new/pytest_httpx-0.35.0/pytest_httpx/version.py     2024-11-28 
20:16:16.000000000 +0100
@@ -3,4 +3,4 @@
 # Major should be incremented in case there is a breaking change. (eg: 2.5.8 
-> 3.0.0)
 # Minor should be incremented in case there is an enhancement. (eg: 2.5.8 -> 
2.6.0)
 # Patch should be incremented in case there is a bug fix. (eg: 2.5.8 -> 2.5.9)
-__version__ = "0.34.0"
+__version__ = "0.35.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest_httpx-0.34.0/tests/test_httpx_async.py 
new/pytest_httpx-0.35.0/tests/test_httpx_async.py
--- old/pytest_httpx-0.34.0/tests/test_httpx_async.py   2024-11-18 
19:49:24.000000000 +0100
+++ new/pytest_httpx-0.35.0/tests/test_httpx_async.py   2024-11-28 
20:16:16.000000000 +0100
@@ -132,7 +132,9 @@
 
 @pytest.mark.asyncio
 async def test_reusing_one_response(httpx_mock: HTTPXMock) -> None:
-    httpx_mock.add_response(url="https://test_url";, content=b"test content", 
is_reusable=True)
+    httpx_mock.add_response(
+        url="https://test_url";, content=b"test content", is_reusable=True
+    )
 
     async with httpx.AsyncClient() as client:
         response = await client.get("https://test_url";)
@@ -286,7 +288,9 @@
 @pytest.mark.asyncio
 async def test_with_many_reused_responses(httpx_mock: HTTPXMock) -> None:
     httpx_mock.add_response(url="https://test_url";, content=b"test content 1")
-    httpx_mock.add_response(url="https://test_url";, content=b"test content 2", 
is_reusable=True)
+    httpx_mock.add_response(
+        url="https://test_url";, content=b"test content 2", is_reusable=True
+    )
 
     async with httpx.AsyncClient() as client:
         response = await client.get("https://test_url";)
@@ -1137,7 +1141,9 @@
 async def test_multi_value_headers_not_matching_single_value_issued(
     httpx_mock: HTTPXMock,
 ) -> None:
-    httpx_mock.add_response(match_headers={"my-custom-header": "value1"}, 
is_optional=True)
+    httpx_mock.add_response(
+        match_headers={"my-custom-header": "value1"}, is_optional=True
+    )
 
     async with httpx.AsyncClient() as client:
         with pytest.raises(httpx.TimeoutException) as exception_info:
@@ -1160,7 +1166,9 @@
 async def test_multi_value_headers_not_matching_multi_value_issued(
     httpx_mock: HTTPXMock,
 ) -> None:
-    httpx_mock.add_response(match_headers={"my-custom-header": "value1, 
value2"}, is_optional=True)
+    httpx_mock.add_response(
+        match_headers={"my-custom-header": "value1, value2"}, is_optional=True
+    )
 
     async with httpx.AsyncClient() as client:
         with pytest.raises(httpx.TimeoutException) as exception_info:
@@ -1182,7 +1190,8 @@
 @pytest.mark.httpx_mock(assert_all_requests_were_expected=False)
 async def test_headers_matching_respect_case(httpx_mock: HTTPXMock) -> None:
     httpx_mock.add_response(
-        match_headers={"user-agent": f"python-httpx/{httpx.__version__}"}, 
is_optional=True
+        match_headers={"user-agent": f"python-httpx/{httpx.__version__}"},
+        is_optional=True,
     )
 
     async with httpx.AsyncClient() as client:
@@ -1204,7 +1213,7 @@
             "Host": "test_url2",
             "Host2": "test_url",
         },
-        is_optional=True
+        is_optional=True,
     )
 
     async with httpx.AsyncClient() as client:
@@ -1480,7 +1489,7 @@
             await client.post("https://test_url";, json={"c": 3, "b": 2, "a": 
1})
         assert (
             str(exception_info.value)
-            == """No response can be found for POST request on 
https://test_url with b'{"c": 3, "b": 2, "a": 1}' body amongst:
+            == """No response can be found for POST request on 
https://test_url with b'{"c":3,"b":2,"a":1}' body amongst:
 - Match any request with {'a': 1, 'b': 2} json body"""
         )
 
@@ -1490,7 +1499,7 @@
 async def test_headers_and_json_not_matching(httpx_mock: HTTPXMock) -> None:
     httpx_mock.add_response(
         match_json={"a": 1, "b": 2},
-        match_headers={"foo": "bar"}, 
+        match_headers={"foo": "bar"},
         is_optional=True,
     )
 
@@ -1499,7 +1508,7 @@
             await client.post("https://test_url";, json={"c": 3, "b": 2, "a": 
1})
         assert (
             str(exception_info.value)
-            == """No response can be found for POST request on 
https://test_url with {} headers and b'{"c": 3, "b": 2, "a": 1}' body amongst:
+            == """No response can be found for POST request on 
https://test_url with {} headers and b'{"c":3,"b":2,"a":1}' body amongst:
 - Match any request with {'foo': 'bar'} headers and {'a': 1, 'b': 2} json 
body"""
         )
 
@@ -1539,7 +1548,7 @@
             "User-Agent": f"python-httpx/{httpx.__version__}",
             "Host": "test_url2",
         },
-        match_content=b"This is the body", 
+        match_content=b"This is the body",
         is_optional=True,
     )
 
@@ -1561,7 +1570,7 @@
             "User-Agent": f"python-httpx/{httpx.__version__}",
             "Host": "test_url",
         },
-        match_content=b"This is the body2", 
+        match_content=b"This is the body2",
         is_optional=True,
     )
 
@@ -1583,7 +1592,7 @@
             "User-Agent": f"python-httpx/{httpx.__version__}",
             "Host": "test_url2",
         },
-        match_content=b"This is the body2", 
+        match_content=b"This is the body2",
         is_optional=True,
     )
 
@@ -1621,7 +1630,7 @@
             "User-Agent": f"python-httpx/{httpx.__version__}",
             "Host": "test_url2",
         },
-        match_content=b"This is the body", 
+        match_content=b"This is the body",
         is_optional=True,
     )
 
@@ -1646,7 +1655,7 @@
             "User-Agent": f"python-httpx/{httpx.__version__}",
             "Host": "test_url2",
         },
-        match_content=b"This is the body", 
+        match_content=b"This is the body",
         is_optional=True,
     )
 
@@ -1671,7 +1680,7 @@
             "User-Agent": f"python-httpx/{httpx.__version__}",
             "Host": "test_url",
         },
-        match_content=b"This is the body2", 
+        match_content=b"This is the body2",
         is_optional=True,
     )
 
@@ -1696,7 +1705,7 @@
             "User-Agent": f"python-httpx/{httpx.__version__}",
             "Host": "test_url",
         },
-        match_content=b"This is the body2", 
+        match_content=b"This is the body2",
         is_optional=True,
     )
 
@@ -1721,7 +1730,7 @@
             "User-Agent": f"python-httpx/{httpx.__version__}",
             "Host": "test_url2",
         },
-        match_content=b"This is the body2", 
+        match_content=b"This is the body2",
         is_optional=True,
     )
 
@@ -2207,7 +2216,9 @@
         lambda length: 
b"\xfb\xe4\x95\xef\xe4\xcdA\xb9A\xca\x13\xe2T\xd6\xb0\x18",
     )
 
-    httpx_mock.add_response(match_files={"name2": ("file_name", b"File 
content")}, is_optional=True)
+    httpx_mock.add_response(
+        match_files={"name2": ("file_name", b"File content")}, is_optional=True
+    )
 
     async with httpx.AsyncClient() as client:
         with pytest.raises(httpx.TimeoutException) as exception_info:
@@ -2231,7 +2242,9 @@
         lambda length: 
b"\xfb\xe4\x95\xef\xe4\xcdA\xb9A\xca\x13\xe2T\xd6\xb0\x18",
     )
 
-    httpx_mock.add_response(match_files={"name": ("file_name2", b"File 
content")}, is_optional=True)
+    httpx_mock.add_response(
+        match_files={"name": ("file_name2", b"File content")}, is_optional=True
+    )
 
     async with httpx.AsyncClient() as client:
         with pytest.raises(httpx.TimeoutException) as exception_info:
@@ -2255,7 +2268,9 @@
         lambda length: 
b"\xfb\xe4\x95\xef\xe4\xcdA\xb9A\xca\x13\xe2T\xd6\xb0\x18",
     )
 
-    httpx_mock.add_response(match_files={"name": ("file_name", b"File 
content2")}, is_optional=True)
+    httpx_mock.add_response(
+        match_files={"name": ("file_name", b"File content2")}, is_optional=True
+    )
 
     async with httpx.AsyncClient() as client:
         with pytest.raises(httpx.TimeoutException) as exception_info:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest_httpx-0.34.0/tests/test_httpx_sync.py 
new/pytest_httpx-0.35.0/tests/test_httpx_sync.py
--- old/pytest_httpx-0.34.0/tests/test_httpx_sync.py    2024-11-18 
19:49:24.000000000 +0100
+++ new/pytest_httpx-0.35.0/tests/test_httpx_sync.py    2024-11-28 
20:16:16.000000000 +0100
@@ -119,7 +119,9 @@
 
 
 def test_reusing_one_response(httpx_mock: HTTPXMock) -> None:
-    httpx_mock.add_response(url="https://test_url";, content=b"test content", 
is_reusable=True)
+    httpx_mock.add_response(
+        url="https://test_url";, content=b"test content", is_reusable=True
+    )
 
     with httpx.Client() as client:
         response = client.get("https://test_url";)
@@ -265,7 +267,9 @@
 
 def test_with_many_reused_responses(httpx_mock: HTTPXMock) -> None:
     httpx_mock.add_response(url="https://test_url";, content=b"test content 1")
-    httpx_mock.add_response(url="https://test_url";, content=b"test content 2", 
is_reusable=True)
+    httpx_mock.add_response(
+        url="https://test_url";, content=b"test content 2", is_reusable=True
+    )
 
     with httpx.Client() as client:
         response = client.get("https://test_url";)
@@ -907,7 +911,9 @@
 def test_multi_value_headers_not_matching_single_value_issued(
     httpx_mock: HTTPXMock,
 ) -> None:
-    httpx_mock.add_response(match_headers={"my-custom-header": "value1"}, 
is_optional=True)
+    httpx_mock.add_response(
+        match_headers={"my-custom-header": "value1"}, is_optional=True
+    )
 
     with httpx.Client() as client:
         with pytest.raises(httpx.TimeoutException) as exception_info:
@@ -929,7 +935,9 @@
 def test_multi_value_headers_not_matching_multi_value_issued(
     httpx_mock: HTTPXMock,
 ) -> None:
-    httpx_mock.add_response(match_headers={"my-custom-header": "value1, 
value2"}, is_optional=True)
+    httpx_mock.add_response(
+        match_headers={"my-custom-header": "value1, value2"}, is_optional=True
+    )
 
     with httpx.Client() as client:
         with pytest.raises(httpx.TimeoutException) as exception_info:
@@ -950,7 +958,8 @@
 @pytest.mark.httpx_mock(assert_all_requests_were_expected=False)
 def test_headers_matching_respect_case(httpx_mock: HTTPXMock) -> None:
     httpx_mock.add_response(
-        match_headers={"user-agent": f"python-httpx/{httpx.__version__}"}, 
is_optional=True
+        match_headers={"user-agent": f"python-httpx/{httpx.__version__}"},
+        is_optional=True,
     )
 
     with httpx.Client() as client:
@@ -971,7 +980,7 @@
             "Host": "test_url2",
             "Host2": "test_url",
         },
-        is_optional=True
+        is_optional=True,
     )
 
     with httpx.Client() as client:
@@ -1239,7 +1248,7 @@
             client.post("https://test_url";, json={"c": 3, "b": 2, "a": 1})
         assert (
             str(exception_info.value)
-            == """No response can be found for POST request on 
https://test_url with b'{"c": 3, "b": 2, "a": 1}' body amongst:
+            == """No response can be found for POST request on 
https://test_url with b'{"c":3,"b":2,"a":1}' body amongst:
 - Match any request with {'a': 1, 'b': 2} json body"""
         )
 
@@ -1257,7 +1266,7 @@
             client.post("https://test_url";, json={"c": 3, "b": 2, "a": 1})
         assert (
             str(exception_info.value)
-            == """No response can be found for POST request on 
https://test_url with {} headers and b'{"c": 3, "b": 2, "a": 1}' body amongst:
+            == """No response can be found for POST request on 
https://test_url with {} headers and b'{"c":3,"b":2,"a":1}' body amongst:
 - Match any request with {'foo': 'bar'} headers and {'a': 1, 'b': 2} json 
body"""
         )
 
@@ -1904,7 +1913,9 @@
         lambda length: 
b"\xfb\xe4\x95\xef\xe4\xcdA\xb9A\xca\x13\xe2T\xd6\xb0\x18",
     )
 
-    httpx_mock.add_response(match_files={"name2": ("file_name", b"File 
content")}, is_optional=True)
+    httpx_mock.add_response(
+        match_files={"name2": ("file_name", b"File content")}, is_optional=True
+    )
 
     with httpx.Client() as client:
         with pytest.raises(httpx.TimeoutException) as exception_info:
@@ -1927,7 +1938,9 @@
         lambda length: 
b"\xfb\xe4\x95\xef\xe4\xcdA\xb9A\xca\x13\xe2T\xd6\xb0\x18",
     )
 
-    httpx_mock.add_response(match_files={"name": ("file_name2", b"File 
content")}, is_optional=True)
+    httpx_mock.add_response(
+        match_files={"name": ("file_name2", b"File content")}, is_optional=True
+    )
 
     with httpx.Client() as client:
         with pytest.raises(httpx.TimeoutException) as exception_info:
@@ -1950,7 +1963,9 @@
         lambda length: 
b"\xfb\xe4\x95\xef\xe4\xcdA\xb9A\xca\x13\xe2T\xd6\xb0\x18",
     )
 
-    httpx_mock.add_response(match_files={"name": ("file_name", b"File 
content2")}, is_optional=True)
+    httpx_mock.add_response(
+        match_files={"name": ("file_name", b"File content2")}, is_optional=True
+    )
 
     with httpx.Client() as client:
         with pytest.raises(httpx.TimeoutException) as exception_info:
@@ -2016,7 +2031,8 @@
 @pytest.mark.httpx_mock(assert_all_requests_were_expected=False)
 def test_timeout_not_matching(httpx_mock: HTTPXMock) -> None:
     httpx_mock.add_response(
-        match_extensions={"timeout": {"connect": 5, "read": 5, "write": 10, 
"pool": 5}}, is_optional=True
+        match_extensions={"timeout": {"connect": 5, "read": 5, "write": 10, 
"pool": 5}},
+        is_optional=True,
     )
 
     with httpx.Client() as client:

Reply via email to