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 Maxim Filipenko
Maximilian Cosmo Sitter Maximilian Cosmo Sitter
mbyt mbyt
Mickey Pashov
Michael Aquilina Michael Aquilina
Michael Birtwell Michael Birtwell
Michael Droettboom Michael Droettboom

View File

@ -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/