From 121c463aac7d74d0a07c2dfa6dfd8447c46b00a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 11 Mar 2021 18:08:38 +0100 Subject: [PATCH] Use %pytest and be verbose, to display reason for skip Examples: tests/test_searchadapters.py::test_xapian SKIPPED (needs sqlalchemy) [ 7%] tests/test_searchadapters.py::test_whoosh SKIPPED (needs sqlalchemy) [ 15%] tests/test_websupport.py::test_no_srcdir PASSED [ 23%] tests/test_websupport.py::test_build SKIPPED (needs sqlalchemy) [ 30%] tests/test_websupport.py::test_get_document SKIPPED (needs sqlalchemy) [ 38%] tests/test_websupport.py::test_comments SKIPPED (needs sqlalchemy) [ 46%] tests/test_websupport.py::test_user_delete_comments SKIPPED (needs s...) [ 53%] tests/test_websupport.py::test_moderation SKIPPED (needs sqlalchemy) [ 61%] tests/test_websupport.py::test_moderator_delete_comments SKIPPED (ne...) [ 69%] tests/test_websupport.py::test_update_username SKIPPED (needs sqlalc...) [ 76%] tests/test_websupport.py::test_proposals SKIPPED (needs sqlalchemy) [ 84%] tests/test_websupport.py::test_voting SKIPPED (needs sqlalchemy) [ 92%] tests/test_websupport.py::test_differ PASSED [100%] tests/test_searchadapters.py::test_xapian SKIPPED (needs xapian bind...) [ 7%] tests/test_searchadapters.py::test_whoosh SKIPPED (needs whoosh pack...) [ 15%] tests/test_websupport.py::test_no_srcdir PASSED [ 23%] tests/test_websupport.py::test_build PASSED [ 30%] tests/test_websupport.py::test_get_document PASSED [ 38%] tests/test_websupport.py::test_comments PASSED [ 46%] tests/test_websupport.py::test_user_delete_comments PASSED [ 53%] tests/test_websupport.py::test_moderation PASSED [ 61%] tests/test_websupport.py::test_moderator_delete_comments PASSED [ 69%] tests/test_websupport.py::test_update_username PASSED [ 76%] tests/test_websupport.py::test_proposals PASSED [ 84%] tests/test_websupport.py::test_voting PASSED [ 92%] tests/test_websupport.py::test_differ PASSED [100%] --- python-sphinxcontrib-websupport.spec | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/python-sphinxcontrib-websupport.spec b/python-sphinxcontrib-websupport.spec index a92605b..485b288 100644 --- a/python-sphinxcontrib-websupport.spec +++ b/python-sphinxcontrib-websupport.spec @@ -54,11 +54,7 @@ rm -rf %{pypi_name}.egg-info %py3_install %check -mkdir empty && pushd empty # don't run the tests from sources -export PYTHONPATH=%{buildroot}%{python3_sitelib} -%{__python3} -m pytest ../tests -popd -rmdir empty +%pytest -v %files -n python3-%{pypi_name} %license LICENSE