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>
|
||||
|
||||
|
@ -55,10 +55,6 @@ It is similar to Ruby's FakeWeb.
|
||||
|
||||
%prep
|
||||
%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
|
||||
%python_build
|
||||
@ -70,13 +66,11 @@ sed -i -e '/rednose/ d' setup.cfg
|
||||
%check
|
||||
# gh#gabrielfalcao/HTTPretty#405
|
||||
export EVENTLET_NO_GREENDNS=yes
|
||||
# test_http_passthrough and test_https_passthrough need internet connection
|
||||
sed -Ei 's/(test_https?_passthrough)/_\1/' tests/functional/test_passthrough.py
|
||||
# fails on 15.1
|
||||
sed -Ei 's/(test_streaming_responses)/_\1/' tests/functional/test_requests.py
|
||||
# fails on x86_64
|
||||
sed -Ei 's/(test_fakesock_socket_sendall_with_body_data_with_chunked_entry)/_\1/' tests/unit/test_core.py
|
||||
%pytest
|
||||
# needs internet connection to httpbin.org
|
||||
donttest="test_http_passthrough or test_https_passthrough"
|
||||
# flaky (too slow) on obs
|
||||
donttest="$donttest or test_httpretty_should_allow_forcing_headers_urllib2"
|
||||
%pytest -k "not (${donttest})"
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
|
Loading…
x
Reference in New Issue
Block a user