forked from pool/python-geventhttpclient
- Add patch to skip online tests:
* gevent-mark-tests.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-geventhttpclient?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
b1553fff10
commit
9a7ed02263
@@ -26,6 +26,7 @@ Group: Development/Languages/Python
|
||||
URL: http://github.com/gwik/geventhttpclient
|
||||
Source: https://files.pythonhosted.org/packages/source/g/geventhttpclient/geventhttpclient-%{version}.tar.gz
|
||||
Source1: https://raw.githubusercontent.com/gwik/geventhttpclient/master/LICENSE-MIT
|
||||
Patch0: gevent-mark-tests.patch
|
||||
BuildRequires: %{python_module certifi}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module gevent}
|
||||
@@ -53,6 +54,7 @@ APIs like Twitter's.
|
||||
|
||||
%prep
|
||||
%setup -q -n geventhttpclient-%{version}
|
||||
%patch0 -p1
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%build
|
||||
@@ -64,15 +66,7 @@ cp %{SOURCE1} .
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
# online tests:
|
||||
# test_client_simple
|
||||
# test_client_without_leading_slash
|
||||
# test_request_with_headers
|
||||
# test_response_context_manager
|
||||
# test_client_ssl
|
||||
# test_ssl_fail_invalid_certificate
|
||||
# test_multi_queries_greenlet_safe
|
||||
%python_expand PYTHONPATH=$PYTHONPATH:%{buildroot}%{$python_sitearch} $python -mpytest src/geventhttpclient/tests -k 'not (test_client_simple or test_client_without_leading_slash or test_request_with_headers or test_response_context_manager or test_client_ssl or test_ssl_fail_invalid_certificate or test_multi_queries_greenlet_safe)'
|
||||
%python_expand PYTHONPATH=$PYTHONPATH:%{buildroot}%{$python_sitearch} $python -mpytest src/geventhttpclient/tests -m 'not online'
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE-MIT
|
||||
|
Reference in New Issue
Block a user