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:
@@ -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>
|
Mon Jan 16 11:33:19 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
@@ -23,6 +23,8 @@ Summary: Mock HTTPX with request patterns and response side effects
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
URL: https://github.com/lundberg/respx
|
URL: https://github.com/lundberg/respx
|
||||||
Source0: https://github.com/lundberg/respx/archive/refs/tags/%{version}.tar.gz#/respx-%{version}.tar.gz
|
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 Flask}
|
||||||
BuildRequires: %{python_module httpx}
|
BuildRequires: %{python_module httpx}
|
||||||
BuildRequires: %{python_module pytest-asyncio}
|
BuildRequires: %{python_module pytest-asyncio}
|
||||||
|
16
use-real-ipv6-address.patch
Normal file
16
use-real-ipv6-address.patch
Normal 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,
|
||||||
|
),
|
||||||
|
],
|
Reference in New Issue
Block a user