- Add patch double-slash-paths.patch:
* http.request may replace // with /, handle that in the testcase. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpretty?expand=0&rev=49
This commit is contained in:
parent
9adbcf98af
commit
843689f808
10
double-slash-paths.patch
Normal file
10
double-slash-paths.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
Index: httpretty-1.1.4/tests/functional/test_requests.py
|
||||||
|
===================================================================
|
||||||
|
--- httpretty-1.1.4.orig/tests/functional/test_requests.py
|
||||||
|
+++ httpretty-1.1.4/tests/functional/test_requests.py
|
||||||
|
@@ -946,4 +946,4 @@ def test_httpretty_should_handle_paths_s
|
||||||
|
response = requests.get('http://example.com//foo')
|
||||||
|
expect(response.text).to.equal('Find the best foo')
|
||||||
|
expect(HTTPretty.last_request.method).to.equal('GET')
|
||||||
|
- expect(HTTPretty.last_request.path).to.equal('//foo')
|
||||||
|
+ expect(HTTPretty.last_request.path).to.be.within(['//foo', '/foo'])
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 8 02:53:55 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add patch double-slash-paths.patch:
|
||||||
|
* http.request may replace // with /, handle that in the testcase.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Aug 6 17:32:34 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
Sat Aug 6 17:32:34 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -29,6 +29,9 @@ Patch0: remove-mock.patch
|
|||||||
# PATCH-FIX-UPSTREAM 453-fix-tests-pytest.patch gh#gabrielfalcao/HTTPretty#449 mcepl@suse.com
|
# PATCH-FIX-UPSTREAM 453-fix-tests-pytest.patch gh#gabrielfalcao/HTTPretty#449 mcepl@suse.com
|
||||||
# Make tests compatible with pytest
|
# Make tests compatible with pytest
|
||||||
Patch1: 453-fix-tests-pytest.patch
|
Patch1: 453-fix-tests-pytest.patch
|
||||||
|
# PATCH-FIX-OPENSUSE test_double_slash may be replaced with / from stdlib
|
||||||
|
# gh#gabrielfalcao/HTTPretty#457
|
||||||
|
Patch2: double-slash-paths.patch
|
||||||
BuildRequires: %{python_module boto3}
|
BuildRequires: %{python_module boto3}
|
||||||
BuildRequires: %{python_module eventlet}
|
BuildRequires: %{python_module eventlet}
|
||||||
BuildRequires: %{python_module fakeredis}
|
BuildRequires: %{python_module fakeredis}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user