- 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=<int>` - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-check?expand=0&rev=4
This commit is contained in:
2023-07-24 18:49:04 +00:00
committed by Git OBS Bridge
parent 64a912dbf9
commit 46c01677e9
4 changed files with 55 additions and 11 deletions

View File

@@ -1,3 +1,49 @@
-------------------------------------------------------------------
Mon Jul 24 18:46:08 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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=<int>` - 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 <code@bnavigator.de>