diff --git a/python-pyproject-hooks.spec b/python-pyproject-hooks.spec index 116238c..454f8dc 100644 --- a/python-pyproject-hooks.spec +++ b/python-pyproject-hooks.spec @@ -46,8 +46,9 @@ sed -i "/flake8/d" dev-requirements.txt %pyproject_save_files pyproject_hooks -%if %{with tests} %check +%pyproject_check_import +%if %{with tests} %pytest %endif