For allowing niet package loading during unittest the function defined inside the niet/__main__.py must be moved inside the file niet/__init__.py. For try to keep history of changes I use a git mv niet/__main__.py niet/__init__.py but git blame niet/__init__.py don't keep old changes due to code moving (it's logical...)
Overview
Introduce unittest for python code and functions.
Notes
For allowing niet package loading during unittest the function defined inside the
niet/__main__.py
must be moved inside the fileniet/__init__.py
. For try to keep history of changes I use agit mv niet/__main__.py niet/__init__.py
butgit blame niet/__init__.py
don't keep old changes due to code moving (it's logical...)