Refac tests
Compare changes
Closes #83 (closed) I recon it's a big diff but is mostly reorganization.
test_*
in funcs that makes more sense (e.g. test_app_*
, test_output
, test_slicer
, test_summarize_*
)test_add
, test_sub
, test_mult
, test_div
With these new func names it's more easy to use pytest for a subset of tests. For example :
python -m pytest -vv -k test_summarize tests/test_core.py
I ended giving up with my fixture idea for now (I tried a get_input_obj
func to generate a new Input object for each unit test) : it was really slow since the image is remote, and it doesn't look like something we should worry about for now.
But if we ever have strange tests results we may need to re-think about it...