forked from pool/python-python-gvm
Accepting request 825837 from home:mnhauke:OpenVAS
- Use %pytest for running the unittest-based testsuite OBS-URL: https://build.opensuse.org/request/show/825837 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gvm?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 11 17:49:50 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
||||||
|
|
||||||
|
- Use %pytest for running the unittest-based testsuite
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Aug 11 07:59:27 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
Tue Aug 11 07:59:27 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
||||||
|
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-python-gvm
|
# spec file for package python-python-gvm
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2020 SUSE LLC
|
||||||
# Copyright (c) 2020, Martin Hauke <mardnh@gmx.de>
|
# Copyright (c) 2020, Martin Hauke <mardnh@gmx.de>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# 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)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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-%{**}}
|
%{?!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 defusedxml >= 0.6.0}
|
||||||
BuildRequires: %{python_module lxml >= 4.5.0}
|
BuildRequires: %{python_module lxml >= 4.5.0}
|
||||||
BuildRequires: %{python_module paramiko >= 2.7.1}
|
BuildRequires: %{python_module paramiko >= 2.7.1}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
Requires: python-defusedxml >= 0.6.0
|
Requires: python-defusedxml >= 0.6.0
|
||||||
Requires: python-lxml >= 4.5.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}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec -m unittest discover tests/ -v
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
Reference in New Issue
Block a user