14
0
forked from pool/python-respx

- Add patch use-real-ipv6-address.patch:

* Use a real IPv6 address to avoid an address parsing exception

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-respx?expand=0&rev=11
This commit is contained in:
2023-06-16 06:06:46 +00:00
committed by Git OBS Bridge
parent 76e611a0b7
commit 6b1d8ff41a
3 changed files with 24 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jun 16 06:03:28 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch use-real-ipv6-address.patch:
* Use a real IPv6 address to avoid an address parsing exception
-------------------------------------------------------------------
Mon Jan 16 11:33:19 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>

View File

@@ -23,6 +23,8 @@ Summary: Mock HTTPX with request patterns and response side effects
License: BSD-3-Clause
URL: https://github.com/lundberg/respx
Source0: https://github.com/lundberg/respx/archive/refs/tags/%{version}.tar.gz#/respx-%{version}.tar.gz
# PATCH-FIX-OPENSUSE Use a real IPV6 address to avoid a test failure
Patch0: use-real-ipv6-address.patch
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module httpx}
BuildRequires: %{python_module pytest-asyncio}

View File

@@ -0,0 +1,16 @@
Index: respx-0.20.1/tests/test_patterns.py
===================================================================
--- respx-0.20.1.orig/tests/test_patterns.py
+++ respx-0.20.1/tests/test_patterns.py
@@ -280,9 +280,9 @@ def test_params_pattern_hash():
(Lookup.STARTS_WITH, "http://a.b/baz/", {}, "https://a.b/baz/", False),
(
Lookup.EQUAL,
- (b"https", b"fake:ipv6", None, b""),
+ (b"https", b"2001:db8::1", None, b""),
{},
- "https://[fake:ipv6]",
+ "https://[2001:db8::1]",
True,
),
],