From ce825ed16cd17af35c27e584528e8b6909f8cd65 Mon Sep 17 00:00:00 2001 From: mickeypash Date: Wed, 18 Nov 2020 19:24:19 +0000 Subject: [PATCH] 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. --- AUTHORS | 1 + doc/en/nose.rst | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/AUTHORS b/AUTHORS index 4b6786651..02bf0d9da 100644 --- a/AUTHORS +++ b/AUTHORS @@ -200,6 +200,7 @@ Matthias Hafner Maxim Filipenko Maximilian Cosmo Sitter mbyt +Mickey Pashov Michael Aquilina Michael Birtwell Michael Droettboom diff --git a/doc/en/nose.rst b/doc/en/nose.rst index 1ac70af6c..44bbe440d 100644 --- a/doc/en/nose.rst +++ b/doc/en/nose.rst @@ -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 `_ 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/