From 6b8c12617d9815b66a07254de1d76e909a4c08c8cea4d1547be6f0974e102b63 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 20 Jun 2022 09:12:47 +0000 Subject: [PATCH] - update to 0.21.0: * Add `threading.Lock()` to allow `responses` working with `threading` module. * Add `urllib3` `Retry` mechanism. See #135 * Removed internal `_cookies_from_headers` function * Now `add`, `upsert`, `replace` methods return registered response. `remove` method returns list of removed responses. * Added null value support in `urlencoded_params_matcher` via `allow_blank` keyword argument * Added strict version of decorator. Now you can apply `@responses.activate(assert_all_requests_are_fired=True)` to your function to validate that all requests were executed in the wrapped function. See #183 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-responses?expand=0&rev=43 --- 0.20.0.tar.gz | 3 --- python-responses.changes | 13 +++++++++++++ python-responses.spec | 6 ++---- responses-0.21.0.tar.gz | 3 +++ 4 files changed, 18 insertions(+), 7 deletions(-) delete mode 100644 0.20.0.tar.gz create mode 100644 responses-0.21.0.tar.gz diff --git a/0.20.0.tar.gz b/0.20.0.tar.gz deleted file mode 100644 index 3607074..0000000 --- a/0.20.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:82c047a8f6d84612501db291c7285b9b0b4f04a76274e86ba0c4a6a216b20bd4 -size 45072 diff --git a/python-responses.changes b/python-responses.changes index 667540f..1238787 100644 --- a/python-responses.changes +++ b/python-responses.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Mon Jun 20 09:12:27 UTC 2022 - Dirk Müller + +- update to 0.21.0: + * Add `threading.Lock()` to allow `responses` working with `threading` module. + * Add `urllib3` `Retry` mechanism. See #135 + * Removed internal `_cookies_from_headers` function + * Now `add`, `upsert`, `replace` methods return registered response. + `remove` method returns list of removed responses. + * Added null value support in `urlencoded_params_matcher` via `allow_blank` keyword argument + * Added strict version of decorator. Now you can apply `@responses.activate(assert_all_requests_are_fired=True)` + to your function to validate that all requests were executed in the wrapped function. See #183 + ------------------------------------------------------------------- Fri Apr 8 08:25:54 UTC 2022 - pgajdos@suse.com diff --git a/python-responses.spec b/python-responses.spec index 37da4ed..101ac9b 100644 --- a/python-responses.spec +++ b/python-responses.spec @@ -20,15 +20,13 @@ %global skip_python2 1 %global skip_python36 1 Name: python-responses -Version: 0.20.0 +Version: 0.21.0 Release: 0 Summary: A utility library for mocking out the `requests` Python library License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/getsentry/responses -#Source: https://files.pythonhosted.org/packages/source/r/responses/responses-%{version}.tar.gz -# tests dir will be available next release: https://github.com/getsentry/responses/commit/72238a7212665174416bce788bda26a78547aaf4 -Source: https://github.com/getsentry/responses/archive/refs/tags/0.20.0.tar.gz +Source: https://files.pythonhosted.org/packages/source/r/responses/responses-%{version}.tar.gz # test requirements BuildRequires: %{python_module cookies} BuildRequires: %{python_module pytest-localserver} diff --git a/responses-0.21.0.tar.gz b/responses-0.21.0.tar.gz new file mode 100644 index 0000000..62d9590 --- /dev/null +++ b/responses-0.21.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b82502eb5f09a0289d8e209e7bad71ef3978334f56d09b444253d5ad67bf5253 +size 65501