diff --git a/python-texttable.spec b/python-texttable.spec index b0437e7..c68547c 100644 --- a/python-texttable.spec +++ b/python-texttable.spec @@ -18,6 +18,7 @@ Python module to generate a formatted text table, using ASCII characters. Summary: %{summary} BuildRequires: python2-devel BuildRequires: python2-setuptools +BuildRequires: python2-pytest %{?python_provide:%python_provide python2-%{srcname}} @@ -29,6 +30,7 @@ Python 2 module to generate a formatted text table, using ASCII characters. Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pytest %{?python_provide:%python_provide python3-%{srcname}} @@ -50,6 +52,11 @@ Python 3 module to generate a formatted text table, using ASCII characters. %py3_install +%check +py.test-%{python2_version} --verbose tests.py +py.test-%{python3_version} --verbose tests.py + + %files -n python2-%{srcname} %doc PKG-INFO README.md %license LICENSE @@ -69,6 +76,7 @@ Python 3 module to generate a formatted text table, using ASCII characters. * Wed May 17 2017 Carl George - 0.9.0-1 - Latest upstream - Drop python*-tools build requirement, 2to3 is no longer used +- Run test suite * Sat Feb 11 2017 Fedora Release Engineering - 0.8.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild