15
0
forked from pool/python-respx

Accepting request 1137830 from devel:languages:python

- 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/request/show/1137830
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-respx?expand=0&rev=6
This commit is contained in:
2024-01-10 20:52:18 +00:00
committed by Git OBS Bridge
5 changed files with 20 additions and 25 deletions

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Jan 9 22:11:30 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <steven.kowalik@suse.com>
@@ -13,7 +26,7 @@ Mon Jan 16 11:33:19 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
-------------------------------------------------------------------
Wed Oct 12 15:57:25 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- 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 <yarunachalam@suse.com>
Mon Aug 22 07:35:00 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <steven.kowalik@suse.com>

View File

@@ -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}

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:29880ea8f555760028fd1ee55164d4cceec941ce0bc3e1b7d99371d2c478f3da
size 426277

3
respx-0.20.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7c5569cc328ceb36cc2a45b48896e151180f16a34b5e59f37c5cbef6d04a41c3
size 428472

View File

@@ -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,
),
],