File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,17 @@ annotations,
52
52
[ this page] ( https://typing.readthedocs.io/en/latest/source/quality.html#testing-using-assert-type-and-warn-unused-ignores )
53
53
provides a useful guide.
54
54
55
+ ### Naming convention
56
+
57
+ Use the same top-level name for the module / package you would like to test.
58
+ Use ` test_${thing}.py ` naming pattern for individual test files.
59
+
60
+ By default, tests go into a test file with the same name as the stub file, prefixed with ` test_ ` .
61
+ For example: ` stdlib/test_contextlib.py ` .
62
+
63
+ If that file becomes too big, we instead create a directory with files named after individual objects being tested.
64
+ For example: ` stdlib/builtins/test_dict.py ` .
65
+
55
66
### Differences to the rest of typeshed
56
67
57
68
Unlike the rest of typeshed, this directory largely contains ` .py ` files. This
You can’t perform that action at this time.
0 commit comments