diff --git a/python-blockdiag.changes b/python-blockdiag.changes index 6de5c56..238647d 100644 --- a/python-blockdiag.changes +++ b/python-blockdiag.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 30 13:34:57 UTC 2021 - pgajdos@suse.com + +- %check: test the package + ------------------------------------------------------------------- Mon Feb 24 02:11:52 UTC 2020 - Steve Kowalik diff --git a/python-blockdiag.spec b/python-blockdiag.spec index 6203924..9841240 100644 --- a/python-blockdiag.spec +++ b/python-blockdiag.spec @@ -1,7 +1,7 @@ # # spec file for package python-blockdiag # -# 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 @@ -17,8 +17,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# tests need network connection -%bcond_with tests %define skip_python2 1 Name: python-blockdiag Version: 2.0.1 @@ -39,15 +37,14 @@ Requires: python-Pillow >= 2.2.1 Requires: python-funcparserlib >= 0.3.6 Requires: python-webcolors Requires(post): update-alternatives -Requires(preun): update-alternatives +Requires(preun):update-alternatives BuildArch: noarch -%if %{with tests} +# SECTION test requirements BuildRequires: %{python_module docutils} -BuildRequires: %{python_module mock} -BuildRequires: %{python_module nose} BuildRequires: %{python_module pep8 >= 1.3} BuildRequires: %{python_module pip >= 1.4.1} -%endif +BuildRequires: %{python_module pytest} +# /SECTION %if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24 Recommends: ghostscript Recommends: python-Wand @@ -57,7 +54,6 @@ Recommends: python-reportlab %description The blockdiag package generates block-diagram image files -from spec-text files. %prep %setup -q -n blockdiag-%{version} @@ -76,10 +72,16 @@ from spec-text files. %preun %python_uninstall_alternative blockdiag -%if %{with tests} %check -%python_exec setup.py test -%endif +pushd src +# this only test requires nose +rm blockdiag/tests/test_generate_diagram.py +# other disabled tests: +# [ 9s] WARNING: Could not retrieve: http://blockdiag.com/favicon.ico +# [ 9s] WARNING: Could not retrieve: http://upload.wikimedia.org/wikipedia/commons/9/9b/Scalable_Vector_Graphics_Circle2.svg +# [ 9s] WARNING: Could not retrieve: http://people.sc.fsu.edu/~jburkardt/data/eps/circle.eps +%pytest -k 'not (test_app_cleans_up_images or test_node_attribute or test_setup_inline_svg_is_true_with_multibytes)' +popd %files %{python_files} %license LICENSE