August 2018
Beginner
160 pages
4h 8m
English
You can place your test modules together with the code they are testing by creating a tests folder next to the modules themselves:
setup.pymylib/ tests/ __init__.py test_core.py test_utils.py __init__.py core.py utils.py
By putting the tests near the code they test, you gain the following advantages:
The main disadvantage with this approach is that some folks don't like the added package size of the extra modules, which are now packaged together with the rest of the code, but this is usually minimal and of little concern.
As an ...
Read now
Unlock full access