Skip to content

Commit 4e1d629

Browse files
fixed a couple typos.
1 parent 28630b3 commit 4e1d629

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/source/where_to_put_tests.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ https://packaging.python.org/en/latest/
5050

5151
for recommendations.
5252

53-
In the this case, the directory with all the tests shouls not be a python package -- this is, it should not have a ``__init__.py`` file.
53+
In the this case, the directory with all the tests should not be a python package -- this is, it should not have a ``__init__.py`` file.
5454

5555

5656
2) The other options is to put your test code in a sub-package inside your package. In this case, it should be inside your package, and *be* a python package itself (i.e. have an ``__init__.py``)::
@@ -73,3 +73,5 @@ Sub-package
7373
-----------
7474

7575
The advantage of test being a sub-package is that your test code gets installed with the package, so users (including yourself, if you are deploying the code) can install the package, and run the test to make sure the install all went well. You can also have the tests use relative imports, so you can run it all without installing (though with develop mode I don't think that is much of an advantage)
76+
77+

0 commit comments

Comments
 (0)