Accepting request 993696 from home:bnavigator:branches:devel:languages:python
- Fix test suite: * Remove nose idioms * Remove outdated test skips OBS-URL: https://build.opensuse.org/request/show/993696 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpretty?expand=0&rev=50
This commit is contained in:
parent
843689f808
commit
bedef1c3b9
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Aug 8 09:17:40 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Fix test suite:
|
||||||
|
* Remove nose idioms
|
||||||
|
* Remove outdated test skips
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 8 02:53:55 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
Mon Aug 8 02:53:55 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@ -55,10 +55,6 @@ It is similar to Ruby's FakeWeb.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n httpretty-%{version}
|
%autosetup -p1 -n httpretty-%{version}
|
||||||
# no test coverage check needed
|
|
||||||
sed -i -e '/cover/ d' setup.cfg
|
|
||||||
# no color printout for tests
|
|
||||||
sed -i -e '/rednose/ d' setup.cfg
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -70,13 +66,11 @@ sed -i -e '/rednose/ d' setup.cfg
|
|||||||
%check
|
%check
|
||||||
# gh#gabrielfalcao/HTTPretty#405
|
# gh#gabrielfalcao/HTTPretty#405
|
||||||
export EVENTLET_NO_GREENDNS=yes
|
export EVENTLET_NO_GREENDNS=yes
|
||||||
# test_http_passthrough and test_https_passthrough need internet connection
|
# needs internet connection to httpbin.org
|
||||||
sed -Ei 's/(test_https?_passthrough)/_\1/' tests/functional/test_passthrough.py
|
donttest="test_http_passthrough or test_https_passthrough"
|
||||||
# fails on 15.1
|
# flaky (too slow) on obs
|
||||||
sed -Ei 's/(test_streaming_responses)/_\1/' tests/functional/test_requests.py
|
donttest="$donttest or test_httpretty_should_allow_forcing_headers_urllib2"
|
||||||
# fails on x86_64
|
%pytest -k "not (${donttest})"
|
||||||
sed -Ei 's/(test_fakesock_socket_sendall_with_body_data_with_chunked_entry)/_\1/' tests/unit/test_core.py
|
|
||||||
%pytest
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
Loading…
x
Reference in New Issue
Block a user