Merge pull request #8048 from mickeypash/patch-1

Add small section on migrating from nose to pytest.
This commit is contained in:
Bruno Oliveira 2020-11-19 09:02:04 -03:00 committed by GitHub
commit 42f9622a90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -200,6 +200,7 @@ Matthias Hafner
Maxim Filipenko
Maximilian Cosmo Sitter
mbyt
Mickey Pashov
Michael Aquilina
Michael Birtwell
Michael Droettboom

View File

@ -68,4 +68,13 @@ Unsupported idioms / known issues
fundamentally incompatible with pytest because they don't support fixtures
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/