Skip to content

Commit ddd773e

Browse files
mickeypashZac-HD
authored andcommitted
[docs] add table nose x pytest naming comparison
1 parent 2203897 commit ddd773e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

doc/en/how-to/nose.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,34 @@ Unsupported idioms / known issues
7070
fundamentally incompatible with pytest because they don't support fixtures
7171
properly since collection and test execution are separated.
7272

73+
Here is a table comparing the default supported naming conventions for both
74+
nose and pytest.
75+
76+
========================== ======== ======
77+
Convention nose pytest
78+
========================== ======== ======
79+
Ⓜ test*.py ✅
80+
Ⓜ test_*.py ✅ ✅
81+
\*_test.py ✅
82+
\*_tests.py
83+
\*\(unittest.TestCase\) ✅ ✅
84+
test_\* ✅ ✅
85+
Ⓒ Test\*
86+
test_\*
87+
test_\*
88+
========================== ======== ======
89+
90+
Symbols are described below
91+
92+
======= =========
93+
Legend
94+
======= =========
95+
Ⓜ module
96+
Ⓒ Class
97+
ⓜ method
98+
ⓕ function
99+
======= =========
100+
73101
Migrating from nose to pytest
74102
------------------------------
75103

0 commit comments

Comments
 (0)