Accepting request 1179687 from devel:languages:python
- update to 0.25.2: * Mulligan on 0.25.1 to run release pipeline correctly. * Added `matchers.body_matcher` for matching string request bodies. See #717 * Fixed tests failures during RPM package builds. See #706 * Fix mocked HEAD responses that have `Content-Length` set. See * Fixed error messages when matches fail: inputs are not sorted or reformatted. See #704 - drop use-asyncio-markers.patch (upstream) OBS-URL: https://build.opensuse.org/request/show/1179687 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-responses?expand=0&rev=32
This commit is contained in:
commit
e9c2caa463
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 10 11:11:11 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 0.25.2:
|
||||||
|
* Mulligan on 0.25.1 to run release pipeline correctly.
|
||||||
|
* Added `matchers.body_matcher` for matching string request
|
||||||
|
bodies. See #717
|
||||||
|
* Fixed tests failures during RPM package builds. See #706
|
||||||
|
* Fix mocked HEAD responses that have `Content-Length` set. See
|
||||||
|
* Fixed error messages when matches fail: inputs are not sorted
|
||||||
|
or reformatted. See #704
|
||||||
|
- drop use-asyncio-markers.patch (upstream)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 7 07:29:01 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
Tue May 7 07:29:01 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@ -18,14 +18,12 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-responses
|
Name: python-responses
|
||||||
Version: 0.25.0
|
Version: 0.25.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A utility library for mocking out the `requests` Python library
|
Summary: A utility library for mocking out the `requests` Python library
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/getsentry/responses
|
URL: https://github.com/getsentry/responses
|
||||||
Source: https://files.pythonhosted.org/packages/source/r/responses/responses-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/r/responses/responses-%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM gh#getsentry/responses#707
|
|
||||||
Patch0: use-asyncio-markers.patch
|
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:01ae6a02b4f34e39bffceb0fc6786b67a25eae919c6368d05eabc8d9576c2a66
|
|
||||||
size 77681
|
|
3
responses-0.25.2.tar.gz
Normal file
3
responses-0.25.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:77a61ad7e6016ed2ac00739b7efa5f35c42351d5b9b5d26bb1be87f197632487
|
||||||
|
size 77494
|
@ -1,74 +0,0 @@
|
|||||||
From 685d75afa091a5e1eaf7a2b008f6edf46a03301d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Mark Story <mark@mark-story.com>
|
|
||||||
Date: Wed, 14 Feb 2024 15:15:05 -0500
|
|
||||||
Subject: [PATCH 1/2] Use pytest.mark.asyncio
|
|
||||||
|
|
||||||
This resolved async test failures locally.
|
|
||||||
|
|
||||||
Refs #706
|
|
||||||
---
|
|
||||||
responses/tests/test_registries.py | 1 +
|
|
||||||
responses/tests/test_responses.py | 1 +
|
|
||||||
2 files changed, 2 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/responses/tests/test_registries.py b/responses/tests/test_registries.py
|
|
||||||
index 2ab035b1..97fd07fb 100644
|
|
||||||
--- a/responses/tests/test_registries.py
|
|
||||||
+++ b/responses/tests/test_registries.py
|
|
||||||
@@ -63,6 +63,7 @@ def run_with_registry():
|
|
||||||
assert_reset()
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.asyncio
|
|
||||||
async def test_registry_async():
|
|
||||||
class CustomRegistry(registries.FirstMatchRegistry):
|
|
||||||
pass
|
|
||||||
diff --git a/responses/tests/test_responses.py b/responses/tests/test_responses.py
|
|
||||||
index e074f6a9..98537fe9 100644
|
|
||||||
--- a/responses/tests/test_responses.py
|
|
||||||
+++ b/responses/tests/test_responses.py
|
|
||||||
@@ -2263,6 +2263,7 @@ def run():
|
|
||||||
assert_reset()
|
|
||||||
|
|
||||||
|
|
||||||
+@pytest.mark.asyncio
|
|
||||||
async def test_async_calls():
|
|
||||||
@responses.activate
|
|
||||||
async def run():
|
|
||||||
|
|
||||||
From 790646dd1df11ff7c51655c2a6193000d888e66d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Mark Story <mark@mark-story.com>
|
|
||||||
Date: Wed, 14 Feb 2024 16:16:00 -0500
|
|
||||||
Subject: [PATCH 2/2] Add type ignores
|
|
||||||
|
|
||||||
---
|
|
||||||
responses/tests/test_registries.py | 2 +-
|
|
||||||
responses/tests/test_responses.py | 2 +-
|
|
||||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/responses/tests/test_registries.py b/responses/tests/test_registries.py
|
|
||||||
index 97fd07fb..c2c90d97 100644
|
|
||||||
--- a/responses/tests/test_registries.py
|
|
||||||
+++ b/responses/tests/test_registries.py
|
|
||||||
@@ -64,7 +64,7 @@ def run_with_registry():
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
|
||||||
-async def test_registry_async():
|
|
||||||
+async def test_registry_async(): # type: ignore[misc]
|
|
||||||
class CustomRegistry(registries.FirstMatchRegistry):
|
|
||||||
pass
|
|
||||||
|
|
||||||
diff --git a/responses/tests/test_responses.py b/responses/tests/test_responses.py
|
|
||||||
index 98537fe9..12176b92 100644
|
|
||||||
--- a/responses/tests/test_responses.py
|
|
||||||
+++ b/responses/tests/test_responses.py
|
|
||||||
@@ -2264,7 +2264,7 @@ def run():
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
|
||||||
-async def test_async_calls():
|
|
||||||
+async def test_async_calls(): # type: ignore[misc]
|
|
||||||
@responses.activate
|
|
||||||
async def run():
|
|
||||||
responses.add(
|
|
Loading…
Reference in New Issue
Block a user