From bbea6ce3cb2e66f7761c0f11b0f5b0d7dbd5557bbfe7628b2c0e5f9d839bb253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 20 May 2021 09:36:32 +0000 Subject: [PATCH] Accepting request 894553 from home:pgajdos:python - %check: use %pytest macro OBS-URL: https://build.opensuse.org/request/show/894553 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-coverage-plugin?expand=0&rev=4 --- python-django-coverage-plugin.changes | 5 +++++ python-django-coverage-plugin.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-django-coverage-plugin.changes b/python-django-coverage-plugin.changes index 8a84a17..44b64fc 100644 --- a/python-django-coverage-plugin.changes +++ b/python-django-coverage-plugin.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 20 08:34:52 UTC 2021 - pgajdos@suse.com + +- %check: use %pytest macro + ------------------------------------------------------------------- Thu Feb 20 09:25:29 UTC 2020 - Tomáš Chvátal diff --git a/python-django-coverage-plugin.spec b/python-django-coverage-plugin.spec index 51d1da4..34d502a 100644 --- a/python-django-coverage-plugin.spec +++ b/python-django-coverage-plugin.spec @@ -1,7 +1,7 @@ # # spec file for package python-django-coverage-plugin # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -36,6 +36,7 @@ BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module Django} BuildRequires: %{python_module coverage >= 4.0} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module six >= 1.4.0} BuildRequires: %{python_module unittest-mixins} # /SECTION @@ -55,7 +56,7 @@ Django template coverage.py plugin %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pytest %files %{python_files} %license LICENSE.txt