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