From 12ea63046515826a707765b1dd96874bb5739b3a1e9f8f18e0828086a8a99812 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 9 Jan 2024 22:11:54 +0000 Subject: [PATCH] - update to 0.20.2: * Better assertion output for `assert_all_called` * Support for quoted path pattern matching * Enable content\_\_contains pattern, thanks @rjprins * Added initial `CONTRIBUTING.md`, thanks @morenoh149 * Docs about retrieving mocked calls, thanks * Docs about `Router.assert_all_called()`, thanks @BeyondEvil for input - drop use-real-ipv6-address.patch (upstream) - Update to version 0.20.0 pytest-asyncio. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-respx?expand=0&rev=13 --- python-respx.changes | 17 +++++++++++++++-- python-respx.spec | 6 ++---- respx-0.20.1.tar.gz | 3 --- respx-0.20.2.tar.gz | 3 +++ use-real-ipv6-address.patch | 16 ---------------- 5 files changed, 20 insertions(+), 25 deletions(-) delete mode 100644 respx-0.20.1.tar.gz create mode 100644 respx-0.20.2.tar.gz delete mode 100644 use-real-ipv6-address.patch diff --git a/python-respx.changes b/python-respx.changes index fc57dac..718e815 100644 --- a/python-respx.changes +++ b/python-respx.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue Jan 9 22:11:30 UTC 2024 - Dirk Müller + +- update to 0.20.2: + * Better assertion output for `assert_all_called` + * Support for quoted path pattern matching + * Enable content\_\_contains pattern, thanks @rjprins + * Added initial `CONTRIBUTING.md`, thanks @morenoh149 + * Docs about retrieving mocked calls, thanks + * Docs about `Router.assert_all_called()`, thanks @BeyondEvil + for input +- drop use-real-ipv6-address.patch (upstream) + ------------------------------------------------------------------- Fri Jun 16 06:03:28 UTC 2023 - Steve Kowalik @@ -13,7 +26,7 @@ Mon Jan 16 11:33:19 UTC 2023 - Daniel Garcia ------------------------------------------------------------------- Wed Oct 12 15:57:25 UTC 2022 - Yogalakshmi Arunachalam -- Update to version 0.20.0 +- Update to version 0.20.0 Changed * Type Router.__getitem__ to not return optional routes, thanks @flaeppe (#216) * Change Call.response to raise instead of returning optional response (#217) @@ -31,7 +44,7 @@ Wed Oct 12 15:57:25 UTC 2022 - Yogalakshmi Arunachalam Mon Aug 22 07:35:00 UTC 2022 - Steve Kowalik - Run pytest with --asyncio-mode=auto due to new release of - pytest-asyncio. + pytest-asyncio. ------------------------------------------------------------------- Tue Aug 2 04:13:14 UTC 2022 - Steve Kowalik diff --git a/python-respx.spec b/python-respx.spec index 354b78f..e931294 100644 --- a/python-respx.spec +++ b/python-respx.spec @@ -1,7 +1,7 @@ # # spec file for package python-respx # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,14 +17,12 @@ Name: python-respx -Version: 0.20.1 +Version: 0.20.2 Release: 0 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} diff --git a/respx-0.20.1.tar.gz b/respx-0.20.1.tar.gz deleted file mode 100644 index 9c1ebb6..0000000 --- a/respx-0.20.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:29880ea8f555760028fd1ee55164d4cceec941ce0bc3e1b7d99371d2c478f3da -size 426277 diff --git a/respx-0.20.2.tar.gz b/respx-0.20.2.tar.gz new file mode 100644 index 0000000..179d6cf --- /dev/null +++ b/respx-0.20.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c5569cc328ceb36cc2a45b48896e151180f16a34b5e59f37c5cbef6d04a41c3 +size 428472 diff --git a/use-real-ipv6-address.patch b/use-real-ipv6-address.patch deleted file mode 100644 index 162f1e5..0000000 --- a/use-real-ipv6-address.patch +++ /dev/null @@ -1,16 +0,0 @@ -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, - ), - ],