Merge pull request #8048 from mickeypash/patch-1
Add small section on migrating from nose to pytest.
This commit is contained in:
commit
42f9622a90
1
AUTHORS
1
AUTHORS
|
@ -200,6 +200,7 @@ Matthias Hafner
|
||||||
Maxim Filipenko
|
Maxim Filipenko
|
||||||
Maximilian Cosmo Sitter
|
Maximilian Cosmo Sitter
|
||||||
mbyt
|
mbyt
|
||||||
|
Mickey Pashov
|
||||||
Michael Aquilina
|
Michael Aquilina
|
||||||
Michael Birtwell
|
Michael Birtwell
|
||||||
Michael Droettboom
|
Michael Droettboom
|
||||||
|
|
|
@ -68,4 +68,13 @@ Unsupported idioms / known issues
|
||||||
fundamentally incompatible with pytest because they don't support fixtures
|
fundamentally incompatible with pytest because they don't support fixtures
|
||||||
properly since collection and test execution are separated.
|
properly since collection and test execution are separated.
|
||||||
|
|
||||||
|
Migrating from Nose to Pytest
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
`nose2pytest <https://github.com/pytest-dev/nose2pytest>`_ is a Python script
|
||||||
|
and py.test plugin to help convert Nose-based tests into py.test-based tests.
|
||||||
|
Specifically, the script transforms nose.tools.assert_* function calls into
|
||||||
|
raw assert statements, while preserving format of original arguments
|
||||||
|
as much as possible.
|
||||||
|
|
||||||
.. _nose: https://nose.readthedocs.io/en/latest/
|
.. _nose: https://nose.readthedocs.io/en/latest/
|
||||||
|
|
Loading…
Reference in New Issue