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%]
This commit is contained in:
parent
5d8cd6c44c
commit
121c463aac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user