diff --git a/python-fake-useragent.changes b/python-fake-useragent.changes index 73fff77..e12e59b 100644 --- a/python-fake-useragent.changes +++ b/python-fake-useragent.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 15 10:31:22 UTC 2021 - pgajdos@suse.com + +- %check: note tests are online, do not run them + ------------------------------------------------------------------- Thu Apr 4 00:40:32 UTC 2019 - Todd R diff --git a/python-fake-useragent.spec b/python-fake-useragent.spec index 3d03da5..113b9e7 100644 --- a/python-fake-useragent.spec +++ b/python-fake-useragent.spec @@ -1,7 +1,7 @@ # # spec file for package python-fake-useragent # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -13,6 +13,7 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -21,15 +22,15 @@ Version: 0.1.11 Release: 0 License: Apache-2.0 Summary: Useragent faker package for Python -Url: https://github.com/hellysmile/fake-useragent +URL: https://github.com/hellysmile/fake-useragent Group: Development/Languages/Python Source: https://github.com/hellysmile/fake-useragent/archive/%{version}.tar.gz#/fake-useragent-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros # SECTION test requirements -BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-cov} # /SECTION BuildArch: noarch @@ -49,7 +50,8 @@ Useragent faker with real world database. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +# online tests +#%%pytest %files %{python_files} %license LICENSE