Accepting request 685370 from devel:languages:python

- Update to 0.7.0:
  * Added parameterized_class feature, for parameterizing entire test
    classes (many thanks to @TobyLL for their suggestions and help testing!)
  * Fix DeprecationWarning on `inspect.getargs` (thanks @brettdh;
    https://github.com/wolever/parameterized/issues/67)
  * Make sure that `setUp` and `tearDown` methods work correctly (#40)
  * Raise a ValueError when input is empty (thanks @danielbradburn;
    https://github.com/wolever/parameterized/pull/48)
  * Fix the order when number of cases exceeds 10 (thanks @ntflc;
    https://github.com/wolever/parameterized/pull/49)

OBS-URL: https://build.opensuse.org/request/show/685370
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-parameterized?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2019-03-22 14:03:37 +00:00 committed by Git OBS Bridge
commit 29a6234440
4 changed files with 24 additions and 15 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:caf58e717097735de0d7e15386a46ffa5ce25bb6a13a43716a8854a8d34841e2
size 14053

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d8c8837fb677ed2d5a93b9e2308ce0da3aeb58cf513120d501e0b7af14da78d5
size 20751

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Fri Mar 15 13:34:56 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.7.0:
* Added parameterized_class feature, for parameterizing entire test
classes (many thanks to @TobyLL for their suggestions and help testing!)
* Fix DeprecationWarning on `inspect.getargs` (thanks @brettdh;
https://github.com/wolever/parameterized/issues/67)
* Make sure that `setUp` and `tearDown` methods work correctly (#40)
* Raise a ValueError when input is empty (thanks @danielbradburn;
https://github.com/wolever/parameterized/pull/48)
* Fix the order when number of cases exceeds 10 (thanks @ntflc;
https://github.com/wolever/parameterized/pull/49)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 4 12:51:07 UTC 2018 - Matej Cepl <mcepl@suse.com> Tue Dec 4 12:51:07 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-parameterized # spec file for package python-parameterized
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,22 +17,20 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-parameterized Name: python-parameterized
Version: 0.6.1 Version: 0.7.0
Release: 0 Release: 0
Summary: Parameterized testing Summary: Parameterized testing
License: BSD-2-Clause License: BSD-2-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/wolever/parameterized Url: https://github.com/wolever/parameterized
Source: https://files.pythonhosted.org/packages/source/p/parameterized/parameterized-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/parameterized/parameterized-%{version}.tar.gz
BuildRequires: %{python_module mock}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pytest}
%endif
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@ -50,14 +48,11 @@ Parameterized testing with any Python test framework.
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check %check
%python_expand py.test-%{$python_bin_suffix} parameterized/test.py export LANG=en_US.UTF8
%python_expand nosetests-%{$python_bin_suffix} %pytest parameterized/test.py
%endif
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-)
%doc CHANGELOG.txt README.rst %doc CHANGELOG.txt README.rst
%license LICENSE.txt %license LICENSE.txt
%{python_sitelib}/* %{python_sitelib}/*