From 58f243de7ad8b4e2b7a67d30e3c104c287af15138d1040bbe10f3ae2919d5174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 15 Mar 2019 13:41:10 +0000 Subject: [PATCH] - 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 --- parameterized-0.6.1.tar.gz | 3 --- parameterized-0.7.0.tar.gz | 3 +++ python-parameterized.changes | 14 ++++++++++++++ python-parameterized.spec | 19 +++++++------------ 4 files changed, 24 insertions(+), 15 deletions(-) delete mode 100644 parameterized-0.6.1.tar.gz create mode 100644 parameterized-0.7.0.tar.gz diff --git a/parameterized-0.6.1.tar.gz b/parameterized-0.6.1.tar.gz deleted file mode 100644 index b586207..0000000 --- a/parameterized-0.6.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:caf58e717097735de0d7e15386a46ffa5ce25bb6a13a43716a8854a8d34841e2 -size 14053 diff --git a/parameterized-0.7.0.tar.gz b/parameterized-0.7.0.tar.gz new file mode 100644 index 0000000..02f601a --- /dev/null +++ b/parameterized-0.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8c8837fb677ed2d5a93b9e2308ce0da3aeb58cf513120d501e0b7af14da78d5 +size 20751 diff --git a/python-parameterized.changes b/python-parameterized.changes index 9d3fc62..5acf1ea 100644 --- a/python-parameterized.changes +++ b/python-parameterized.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Fri Mar 15 13:34:56 UTC 2019 - Tomáš Chvátal + +- 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 diff --git a/python-parameterized.spec b/python-parameterized.spec index f9e70f7..967e516 100644 --- a/python-parameterized.spec +++ b/python-parameterized.spec @@ -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}/*