!9 修复python-httpretty check阶段测试用例失败问题(test_httpretty_should_handle_paths_starting_with_two_slashes)
From: @cherry530 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
6c726e39ec
@ -1,6 +1,6 @@
|
|||||||
Name: python-httpretty
|
Name: python-httpretty
|
||||||
Version: 1.1.4
|
Version: 1.1.4
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: HTTP Client mocking tool for Python
|
Summary: HTTP Client mocking tool for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pypi.org/project/httpretty/
|
URL: https://pypi.org/project/httpretty/
|
||||||
@ -8,6 +8,8 @@ Source0: https://files.pythonhosted.org/packages/source/h/httpretty/httpr
|
|||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
Patch0000: test_handle_slashes.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
HTTP Client mocking tool for Python.Provides a full fake TCP socket module.
|
HTTP Client mocking tool for Python.Provides a full fake TCP socket module.
|
||||||
|
|
||||||
@ -47,6 +49,9 @@ LANG=en_US.UTF-8 %{__python3} -m nose2 -v
|
|||||||
%{python3_sitelib}/httpretty-%{version}-py%{python3_version}.egg-info
|
%{python3_sitelib}/httpretty-%{version}-py%{python3_version}.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 25 2022 xu_ping <xuping33@h-partners.com> - 1.1.4-3
|
||||||
|
- Fix test_httpretty_should_handle_paths_starting_with_two_slashes fail.
|
||||||
|
|
||||||
* Wed Aug 3 2022 kkz <zhaoshuang@uniontech.com> - 1.1.4-2
|
* Wed Aug 3 2022 kkz <zhaoshuang@uniontech.com> - 1.1.4-2
|
||||||
- Remove unnecessary buildrequires
|
- Remove unnecessary buildrequires
|
||||||
|
|
||||||
|
|||||||
9
test_handle_slashes.patch
Normal file
9
test_handle_slashes.patch
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
diff -Nur a/tests/functional/test_requests.py b/tests/functional/test_requests.py
|
||||||
|
--- a/tests/functional/test_requests.py 2021-05-14 09:02:06.000000000 +0800
|
||||||
|
+++ b/tests/functional/test_requests.py 2022-08-27 15:44:21.935602830 +0800
|
||||||
|
@@ -946,4 +946,4 @@
|
||||||
|
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.equal('/foo')
|
||||||
Loading…
x
Reference in New Issue
Block a user