14
0

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:
2020-08-12 07:47:49 +00:00
committed by Git OBS Bridge
parent b92f47d667
commit 01d582e043
2 changed files with 10 additions and 2 deletions

View File

@@ -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>

View File

@@ -1,6 +1,7 @@
#
# spec file for package python-python-gvm
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2020, Martin Hauke <mardnh@gmx.de>
#
# 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