Open asoplata opened 3 days ago
Currently, there are several tests that retrieve various files from different external locations on GitHub:
hnn_core/tests/test_params.py::test_read_legacy_params
hnn_core/param/default.param
hnn_core/tests/test_params.py::TestConvertToJson.test_convert_to_json_legacy()
hnn_core/tests/test_params.py::test_base_params
hnn_core/param/base.json
hnn_core/tests/test_params.py::test_remove_nulled_drives
hnn_core/param/ERPYes100Trials.param
hnn_core/tests/test_dipole.py::test_rmse
yes_trial_S1_ERP_all_avg.txt
pytest
hnn_core/tests/test_parallel_backends.py::test_compare_hnn_core
dpl.txt
These files should all be downloaded and moved into the test assets directory https://github.com/jonescompneurolab/hnn-core/tree/master/hnn_core/tests/assets since they are small, and it is unnecessary to download them every time tests are run (which is frequent!)
agreed! If it's a small file, definitely add it to a local folder. Remember that git tracks everything, so if you expect the file to change often, it's not a good idea to add to the local repo
Currently, there are several tests that retrieve various files from different external locations on GitHub:
hnn_core/tests/test_params.py::test_read_legacy_params
( https://github.com/jonescompneurolab/hnn-core/blob/master/hnn_core/tests/test_params.py#L46 ) downloads a file of size 5.7kb tohnn_core/param/default.param
hnn_core/tests/test_params.py::TestConvertToJson.test_convert_to_json_legacy()
also downloads this same filehnn_core/tests/test_params.py::test_base_params
( https://github.com/jonescompneurolab/hnn-core/blob/master/hnn_core/tests/test_params.py#L66 ) downloads a file of size 6.4kb tohnn_core/param/base.json
hnn_core/tests/test_params.py::test_remove_nulled_drives
( https://github.com/jonescompneurolab/hnn-core/blob/master/hnn_core/tests/test_params.py#L82 ) downloads a file of size 5.7kb tohnn_core/param/ERPYes100Trials.param
hnn_core/tests/test_dipole.py::test_rmse
( https://github.com/jonescompneurolab/hnn-core/blob/master/hnn_core/tests/test_dipole.py#L282 ) downloads a data file of size 5.1kb calledyes_trial_S1_ERP_all_avg.txt
to whereverpytest
is run fromhnn_core/tests/test_parallel_backends.py::test_compare_hnn_core
( https://github.com/jonescompneurolab/hnn-core/blob/master/hnn_core/tests/test_parallel_backends.py#L204 ) downloads a data file of size 209kb calleddpl.txt
to whereverpytest
is run fromThese files should all be downloaded and moved into the test assets directory https://github.com/jonescompneurolab/hnn-core/tree/master/hnn_core/tests/assets since they are small, and it is unnecessary to download them every time tests are run (which is frequent!)