14
0

- 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:
Tomáš Chvátal
2019-03-22 10:04:20 +00:00
committed by Git OBS Bridge
parent b1553fff10
commit 9a7ed02263
3 changed files with 73 additions and 9 deletions

View File

@@ -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