Added `env_bool` function, csv/kval functions now allow separator to be overriden, + more
New functions / code improvements
- Added
env_boolfunction tocommon.pyfor loading an environment var as a boolean - Added
csvsplitparameter to parse/env_csv and keyval, to allow changing the item separator from, - Added
valsplitparameter to parse/env_keyval, to allow customising the separator between key's and value's from:
Documentation
- Added PyDoc param's / return's for various functions, and fleshed out some others
- Wrapped various docstring values such as
Trueand0with backticks so they display better - Various small formatting improvements to existing docstrings
- Added
PrivexBaseCaseandenv_boolto the docs
Unit Testing
- Refactored various attributes in
test.pyinto the base classPrivexBaseClass - Added example to the PyDoc in
tests.pyshowing how to run tests withpytest - Wrote new unit tests:
test_kval_custom_clean- Validates thatparse_keyvalworks properly with customvalsplit/csvsplittest_kval_custom_spaced- Validates thatparse_keyvalworks properly with space padded values and customvalsplit/csvsplittest_env_nonexist_bool,test_env_bool_true,test_env_bool_false- Validate that the newenv_boolfunction returns the correct values.