1
0
python-httpretty/double-slash-paths.patch
Steve Kowalik 843689f808 - 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
2022-08-08 02:55:49 +00:00

11 lines
603 B
Diff

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'])