Accepting request 922083 from devel:languages:python

- Use pytest to run the testsuite.

OBS-URL: https://build.opensuse.org/request/show/922083
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests-oauthlib?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2021-10-05 20:33:28 +00:00 committed by Git OBS Bridge
commit 6458c41483
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Sep 29 01:34:27 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Use pytest to run the testsuite.
-------------------------------------------------------------------
Mon Mar 2 09:17:37 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-requests-oauthlib
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -22,12 +22,11 @@ Version: 1.3.0
Release: 0
Summary: OAuthlib authentication support for Requests
License: ISC
Group: Development/Languages/Python
URL: https://github.com/requests/requests-oauthlib
Source: https://files.pythonhosted.org/packages/source/r/requests-oauthlib/requests-oauthlib-%{version}.tar.gz
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module oauthlib >= 3.0.0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.0.0}
BuildRequires: %{python_module requests-mock}
BuildRequires: %{python_module setuptools}
@ -55,7 +54,7 @@ This project provides first-class OAuth library support for Requests.
%check
# Three tests initiate network traffic to httpbin.org
%python_exec -m nose -e '(testCanPostBinaryData|test_content_type_override|test_url_is_native_str)'
%pytest -k 'not (testCanPostBinaryData or test_content_type_override or test_url_is_native_str)'
%files %{python_files}
%license LICENSE