15
0

- 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/package/show/devel:languages:python/python-parameterized?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2019-03-15 13:41:10 +00:00
committed by Git OBS Bridge
parent 788f12bf39
commit 58f243de7a
4 changed files with 24 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,22 +17,20 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-parameterized
Version: 0.6.1
Version: 0.7.0
Release: 0
Summary: Parameterized testing
License: BSD-2-Clause
Group: Development/Languages/Python
Url: https://github.com/wolever/parameterized
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: fdupes
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pytest}
%endif
BuildArch: noarch
%python_subpackages
@@ -50,14 +48,11 @@ Parameterized testing with any Python test framework.
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_expand py.test-%{$python_bin_suffix} parameterized/test.py
%python_expand nosetests-%{$python_bin_suffix}
%endif
export LANG=en_US.UTF8
%pytest parameterized/test.py
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGELOG.txt README.rst
%license LICENSE.txt
%{python_sitelib}/*