From d659cbdbdd4f75f4a5b5bdad932f2117e56e7eb883db1fe929e2cd151e17bc44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Thu, 21 Nov 2019 16:00:32 +0000 Subject: [PATCH] Enable tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xkcdpass?expand=0&rev=2 --- python-xkcdpass.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/python-xkcdpass.spec b/python-xkcdpass.spec index a1f2ac2..20766a6 100644 --- a/python-xkcdpass.spec +++ b/python-xkcdpass.spec @@ -27,9 +27,10 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/redacted/XKCD-password-generator Source: https://github.com/redacted/XKCD-password-generator/archive/xkcdpass-%{version}.tar.gz +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python3-base -BuildRequires: %{python_module setuptools} BuildArch: noarch %python_subpackages @@ -41,10 +42,13 @@ inspired by XKCD 936 (https://xkcd.com/936/) %setup -q -n XKCD-password-generator-xkcdpass-%{version} %build -%python_build +%{python_build} + +%check +%{pytest} %install -%python_install +%{python_install} # Remove the shebang sed -i -e '1d' %{buildroot}%{python_sitelib}/xkcdpass/xkcd_password.py