From b735ef19b761daa861a66707b8bf49a99146d94ebb00b856b9e2187e56011af2 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 31 Aug 2024 12:11:55 +0000 Subject: [PATCH] - update to 2.4.1: * Added `is_nan()` and `is_not_nan()` * Drop Python 3.7 * Add testing for Python 3.12 * Add tox-uv to tox.ini and main.yml OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-check?expand=0&rev=16 --- .gitattributes | 23 +++++++++ .gitignore | 1 + pytest_check-2.3.1.tar.gz | 3 ++ pytest_check-2.4.1.tar.gz | 3 ++ python-pytest-check.changes | 99 +++++++++++++++++++++++++++++++++++++ python-pytest-check.spec | 59 ++++++++++++++++++++++ 6 files changed, 188 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pytest_check-2.3.1.tar.gz create mode 100644 pytest_check-2.4.1.tar.gz create mode 100644 python-pytest-check.changes create mode 100644 python-pytest-check.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pytest_check-2.3.1.tar.gz b/pytest_check-2.3.1.tar.gz new file mode 100644 index 0000000..c8f8808 --- /dev/null +++ b/pytest_check-2.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51b8f18a8ccaa426c5d913c4e0e46f014aaa7579481ea03d22d7e1f498f689b2 +size 28674 diff --git a/pytest_check-2.4.1.tar.gz b/pytest_check-2.4.1.tar.gz new file mode 100644 index 0000000..bb6e55c --- /dev/null +++ b/pytest_check-2.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5224efcef059bf7f0cda253f8d0f62704b4819ff48c93f51c675aea6a014f650 +size 28933 diff --git a/python-pytest-check.changes b/python-pytest-check.changes new file mode 100644 index 0000000..a16376a --- /dev/null +++ b/python-pytest-check.changes @@ -0,0 +1,99 @@ +------------------------------------------------------------------- +Sat Aug 31 12:11:11 UTC 2024 - Dirk Müller + +- update to 2.4.1: + * Added `is_nan()` and `is_not_nan()` + * Drop Python 3.7 + * Add testing for Python 3.12 + * Add tox-uv to tox.ini and main.yml + +------------------------------------------------------------------- +Thu Feb 1 20:54:06 UTC 2024 - Dirk Müller + +- update to 2.3.1: + * Documentation Update, README.md + * Turn help function list into a table with param lists + * Show an alternative method of creating a helper function + using `check.fail()` + * `fail(msg)` - indicate test failure, but don't stop testing + * Summaries from 2.2.3 are cool, but don't work with xdist + +------------------------------------------------------------------- +Tue Jan 9 21:33:53 UTC 2024 - Dirk Müller + +- update to 2.2.4: + * fix 153 + * Summaries from 2.2.3 are cool, but don't work for pytest < + 7.3; Remove them for earlier pytest + * Add tox test run for pytest 7.0.0 + * Change dependencies to require 7.0.0 pytest + +------------------------------------------------------------------- +Fri Jan 5 17:11:17 UTC 2024 - Dirk Müller + +- update to 2.2.3: + * Check failure info now shows up in summaries. + +------------------------------------------------------------------- +Mon Oct 2 14:56:35 UTC 2023 - Dirk Müller + +- update to 2.2.2: + * fixed Issue #7 + +------------------------------------------------------------------- +Thu Sep 7 09:23:40 UTC 2023 - Dirk Müller + +- update to 2.2.1: + * Increase Python range to include 3.7.0. Thanks EliahKagan + +------------------------------------------------------------------- +Mon Jul 24 18:46:08 UTC 2023 - Dirk Müller + +- update to 2.2.0: + * pseudo traceback additions + `-l` or `--showlocals` shows locals + `__tracebackhide__ = True` is honored. + * Fix 127 IndexError when running a check in a thread + * include tests an examples in sdist - pr 121 + * README.md - clean up documentation for `--check-max-tb`. + * Minor internal cleanup - removed some debug code. + * `check.call_on_fail(func)` - ***Experimental*** + * Name changed from `check.set_failure_callback(func)`. + * This "func" function will be called for each failed check, + and needs to accept a string parameter. + * With the following change, the default is now pretty darn + fast, and most people will not need to modify any settings to + get most of the speed improvements. + * `--check-max-tb=` - sets the max number of pseudo- + traceback reports per test function. + * `check.set_no_tb` and `--set-no-tb` will be removed in a + future release. (probably soon) + * Since `--check-max-tb` is more useful, the default for + `--check-max-tb` is 1, which is already pretty fast. + * And `--check-max-tb=0` has the same effect as `--check-no- + tb`. + * Most changes are related to speedup improvements. + * use `--check-no-tb --check-max-report=10` to get super zippy. + * `check.between()` added just for fun + * Rewrote `check.equal()` and other helper functions to not use + assert. + * `--check-no-tb` - turn off tracebacks + * `--check-max-report` - limit reported failures per test + function + * `--check-max-fail` - limit failures per test function + * `check.set_no_tb()` - turn off tracebacks for one test + function + * `check.set_max_report()` - limit reports for one test + function + * `check.set_max_fail()` - limit failures for one test function + * `check.between(b, a, c)` - check that a < b < c + * Add `any_failures()`. + * While using the `check` fixture, allow `check.check` as a + context manager. this is unnecessary, the `check` fixture + now works as a context manager. + +------------------------------------------------------------------- +Thu Jul 14 17:07:11 UTC 2022 - Ben Greiner + +- Initial specfile for v1.0.5 +- Required to test pyhton-sphobjinv diff --git a/python-pytest-check.spec b/python-pytest-check.spec new file mode 100644 index 0000000..1c5b3b0 --- /dev/null +++ b/python-pytest-check.spec @@ -0,0 +1,59 @@ +# +# spec file for package python-pytest-check +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-pytest-check +Version: 2.4.1 +Release: 0 +Summary: A pytest plugin that allows multiple failures per test +License: MIT +URL: https://github.com/okken/pytest-check +Source: https://files.pythonhosted.org/packages/source/p/pytest-check/pytest_check-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.6} +BuildRequires: %{python_module flit-core >= 2} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest >= 6} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pytest >= 6 +BuildArch: noarch +%python_subpackages + +%description +A pytest plugin that allows multiple failures per test. A rewrite of pytest-expect + +%prep +%setup -q -n pytest_check-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE.txt +%doc README.md +%{python_sitelib}/pytest_check +%{python_sitelib}/pytest_check-%{version}*-info + +%changelog