Add missing controllers unit tests
In #5179 (closed), some unit tests were added. However, some functions/controllers were not added due to a lack of time. We also had issues with some tests implementation. Here is a list of the missing tests :
-
admin.py controller -
add tests for make_backup -
add tests for load_backup -
add tests for repair -
add tests for reset_workers -
add some more tests for repair missing files
-
-
default.py controller -
add tests for init_db -
add tests for init_db_form -
add tests for get_custom_data -
add tests for get_analysis -
add tests for get_analysis -
add tests for stop_impersonate
-
-
file.py controller -
add tests for restart_pre_process
-
-
my_account.py controller -
add tests for index -
add tests for jobs
-
-
proxy.py controller -
add tests for all methods
-
-
results_file.py controller -
add tests for run_all_patients -
add tests for info -
add tests for download
-
-
sample_set.py controller -
add tests for custom -
add tests for confirm -
add tests for delete -
add tests for permission -
add tests for change_permission -
add tests for get_sample_set_list -
add tests for auto_complete -
should we test stats methods ?
-
-
segmenter.py controller -
add tests for all methods
-
-
tag.py controller -
add tests for all methods
-
After this, most of the endpoints will be tested. A next step could be to check the coverage in order to identify missing tests. Another step would be to add unit tests for modules too?