From cc84bc15c258122e4079212c34013481cec63734 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Jul 09 2018 03:06:34 +0000 Subject: Actually run the tests The package uses iter_entry_points() indirectly in tests, and if the package is not installed, we get no tests. --- diff --git a/python-flake8-import-order.spec b/python-flake8-import-order.spec index 3842ea9..474ba97 100644 --- a/python-flake8-import-order.spec +++ b/python-flake8-import-order.spec @@ -85,9 +85,13 @@ rm tests/test_pylama_linter.py %if ! %{with pylama} mv flake8_import_order/pylama_linter.py flake8_import_order/pylama_linter.NOT %endif -%{?with_python2:%{__python2} -Wall setup.py test} -%{__python3} -Wall setup.py test +%if %{?with_python2} + %{__python2} setup.py develop --user + %{__python2} -m pytest -v +%endif +%{__python3} setup.py develop --user +%{__python3} -m pytest -v %if %{with python2} %files -n python2-%{srcname}