From 3bb1ea93e74610143edbcd61936da3f557f8000ab7762bafe179266392bf2992 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 8 Nov 2018 17:24:40 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-mock?expand=0&rev=22 --- python-requests-mock.spec | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/python-requests-mock.spec b/python-requests-mock.spec index 571fe2d..ae39ae0 100644 --- a/python-requests-mock.spec +++ b/python-requests-mock.spec @@ -17,7 +17,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-requests-mock Version: 1.5.2 Release: 0 @@ -61,16 +60,9 @@ You should checkout the docs for more information. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib}/mymodule -%if %{with test} %check -mv .testr.conf .testr.conf.orig -%{python_expand # first line can't be empty -rm -rf .testrepository -sed 's/python/$python/' .testr.conf.orig >| .testr.conf -testr init -testr run --parallel -} -%endif +%python_expand pytest-%{$python_bin_suffix} tests/pytest +%python_exec setup.py testr %files %{python_files} %doc AUTHORS README.rst ChangeLog