2012-11-20 20:42:00 +08:00
|
|
|
pytest-2.3.4: stabilization, more flexible selection via "-k expr"
|
|
|
|
===========================================================================
|
|
|
|
|
|
|
|
pytest-2.3.4 is a small stabilization release of the py.test tool
|
|
|
|
which offers uebersimple assertions, scalable fixture mechanisms
|
2012-11-20 21:01:31 +08:00
|
|
|
and deep customization for testing with Python. This release
|
|
|
|
comes with the following fixes and features:
|
2012-11-20 20:42:00 +08:00
|
|
|
|
|
|
|
- make "-k" option accept an expressions the same as with "-m" so that one
|
|
|
|
can write: -k "name1 or name2" etc. This is a slight usage incompatibility
|
|
|
|
if you used special syntax like "TestClass.test_method" which you now
|
|
|
|
need to write as -k "TestClass and test_method" to match a certain
|
2018-05-18 16:19:46 +08:00
|
|
|
method in a certain test class.
|
2012-11-20 20:42:00 +08:00
|
|
|
- allow to dynamically define markers via
|
|
|
|
item.keywords[...]=assignment integrating with "-m" option
|
2018-05-18 16:19:46 +08:00
|
|
|
- yielded test functions will now have autouse-fixtures active but
|
2012-11-20 20:42:00 +08:00
|
|
|
cannot accept fixtures as funcargs - it's anyway recommended to
|
|
|
|
rather use the post-2.0 parametrize features instead of yield, see:
|
2021-07-06 15:09:04 +08:00
|
|
|
http://pytest.org/en/stable/example/how-to/parametrize.html
|
2012-11-20 20:42:00 +08:00
|
|
|
- fix autouse-issue where autouse-fixtures would not be discovered
|
2018-05-13 18:06:09 +08:00
|
|
|
if defined in an a/conftest.py file and tests in a/tests/test_some.py
|
2012-11-20 20:42:00 +08:00
|
|
|
- fix issue226 - LIFO ordering for fixture teardowns
|
|
|
|
- fix issue224 - invocations with >256 char arguments now work
|
|
|
|
- fix issue91 - add/discuss package/directory level setups in example
|
|
|
|
- fixes related to autouse discovery and calling
|
|
|
|
|
2012-11-20 21:01:31 +08:00
|
|
|
Thanks in particular to Thomas Waldmann for spotting and reporting issues.
|
2012-11-20 20:42:00 +08:00
|
|
|
|
2018-05-18 16:19:46 +08:00
|
|
|
See
|
2012-11-20 20:42:00 +08:00
|
|
|
|
|
|
|
http://pytest.org/
|
|
|
|
|
|
|
|
for general information. To install or upgrade pytest:
|
|
|
|
|
|
|
|
pip install -U pytest # or
|
|
|
|
easy_install -U pytest
|
|
|
|
|
|
|
|
best,
|
|
|
|
holger krekel
|