Skip to content

Commit ce825ed

Browse files
mickeypashnicoddemus
authored andcommitted
Add small section on migrating from nose to pytest
The section currently features the nose2pytest tool with plans to expand on some of the common gotchas when performing such migrations.
1 parent eda681a commit ce825ed

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ Matthias Hafner
200200
Maxim Filipenko
201201
Maximilian Cosmo Sitter
202202
mbyt
203+
Mickey Pashov
203204
Michael Aquilina
204205
Michael Birtwell
205206
Michael Droettboom

doc/en/nose.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,13 @@ Unsupported idioms / known issues
6868
fundamentally incompatible with pytest because they don't support fixtures
6969
properly since collection and test execution are separated.
7070

71+
Migrating from Nose to Pytest
72+
------------------------------
73+
74+
`nose2pytest <https://github.com/pytest-dev/nose2pytest>`_ is a Python script
75+
and py.test plugin to help convert Nose-based tests into py.test-based tests.
76+
Specifically, the script transforms nose.tools.assert_* function calls into
77+
raw assert statements, while preserving format of original arguments
78+
as much as possible.
79+
7180
.. _nose: https://nose.readthedocs.io/en/latest/

0 commit comments

Comments
 (0)