diff --git a/python-django-environ.changes b/python-django-environ.changes index 91ee6ba..e09f19d 100644 --- a/python-django-environ.changes +++ b/python-django-environ.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 20 08:23:56 UTC 2021 - pgajdos@suse.com + +- %check: use %pytest macro + ------------------------------------------------------------------- Mon Mar 11 03:56:29 UTC 2019 - John Vandenberg diff --git a/python-django-environ.spec b/python-django-environ.spec index 450ac3b..043da78 100644 --- a/python-django-environ.spec +++ b/python-django-environ.spec @@ -1,7 +1,7 @@ # # spec file for package python-django-environ # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -25,6 +25,7 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/joke2k/django-environ Source: https://files.pythonhosted.org/packages/source/d/django-environ/django-environ-%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -48,7 +49,7 @@ variables to configure Django applications. %check LANG=en_US.UTF-8 -%python_exec setup.py test +%pytest environ/test.py %files %{python_files} %doc AUTHORS.rst CHANGELOG.rst README.rst README.rst.txt