From 574dcfe1ad14acf3764de092deaf6380072d1534cc5afb4829018fb5d441e5c6 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 29 Sep 2021 01:34:51 +0000 Subject: [PATCH] - Use pytest to run the testsuite. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-oauthlib?expand=0&rev=16 --- python-requests-oauthlib.changes | 5 +++++ python-requests-oauthlib.spec | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/python-requests-oauthlib.changes b/python-requests-oauthlib.changes index d5480c6..8a06069 100644 --- a/python-requests-oauthlib.changes +++ b/python-requests-oauthlib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 29 01:34:27 UTC 2021 - Steve Kowalik + +- Use pytest to run the testsuite. + ------------------------------------------------------------------- Mon Mar 2 09:17:37 UTC 2020 - Dirk Mueller diff --git a/python-requests-oauthlib.spec b/python-requests-oauthlib.spec index e25ff9d..94358aa 100644 --- a/python-requests-oauthlib.spec +++ b/python-requests-oauthlib.spec @@ -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