File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,12 @@ Conventions for Python test discovery
16
16
* If no arguments are specified then collection starts from :confval: `testpaths `
17
17
(if configured) or the current directory. Alternatively, command line arguments
18
18
can be used in any combination of directories, file names or node ids.
19
- * recurse into directories, unless they match :confval: `norecursedirs `
20
- * ``test_*.py `` or ``*_test.py `` files, imported by their `test package name `_.
21
- * ``Test `` prefixed test classes (without an ``__init__ `` method)
22
- * ``test_ `` prefixed test functions or methods are test items
19
+ * Recurse into directories, unless they match :confval: `norecursedirs `.
20
+ * In those directories, search for ``test_*.py `` or ``*_test.py `` files, imported by their `test package name `_.
21
+ * From those files, collect test items:
22
+
23
+ * ``test_ `` prefixed test functions or methods outside of class
24
+ * ``test_ `` prefixed test functions or methods inside ``Test `` prefixed test classes (without an ``__init__ `` method)
23
25
24
26
For examples of how to customize your test discovery :doc: `example/pythoncollection `.
25
27
You can’t perform that action at this time.
0 commit comments