openuado / niet

Parse/Read yaml or json files directly in your shell (sh, bash, ksh, ...)
https://pypi.org/project/niet/
MIT License
39 stars 7 forks source link

introduce unittest #7

Closed 4383 closed 6 years ago

4383 commented 6 years ago

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 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...)

4383 commented 6 years ago

@dj4ngo I went to update the contribution guide with how to run unit tests. You can review and merge if everything work fine!