File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,34 @@ Unsupported idioms / known issues
70
70
fundamentally incompatible with pytest because they don't support fixtures
71
71
properly since collection and test execution are separated.
72
72
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
+
73
101
Migrating from nose to pytest
74
102
------------------------------
75
103
You can’t perform that action at this time.
0 commit comments