diff --git a/python-python-gvm.changes b/python-python-gvm.changes index 6dc762c..43b9bf4 100644 --- a/python-python-gvm.changes +++ b/python-python-gvm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 11 17:49:50 UTC 2020 - Martin Hauke + +- Use %pytest for running the unittest-based testsuite + ------------------------------------------------------------------- Tue Aug 11 07:59:27 UTC 2020 - Martin Hauke diff --git a/python-python-gvm.spec b/python-python-gvm.spec index c069759..b78b56b 100644 --- a/python-python-gvm.spec +++ b/python-python-gvm.spec @@ -1,6 +1,7 @@ # # spec file for package python-python-gvm # +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2020, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -12,7 +13,8 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -32,6 +34,7 @@ BuildRequires: python-rpm-macros BuildRequires: %{python_module defusedxml >= 0.6.0} BuildRequires: %{python_module lxml >= 4.5.0} BuildRequires: %{python_module paramiko >= 2.7.1} +BuildRequires: %{python_module pytest} # /SECTION Requires: python-defusedxml >= 0.6.0 Requires: python-lxml >= 4.5.0 @@ -59,7 +62,7 @@ Greenbone Management Protocol (GMP) and Open Scanner Protocol (OSP). %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec -m unittest discover tests/ -v +%pytest %files %{python_files} %doc README.md