tests Package

bids_monitor_test

class tvb.interfaces.rest.bids_monitor.tests.bids_monitor_test.TestBIDSDataBuilder[source]

Bases: object

TS_JSON_TO_COPY = 'sub-01_desc-50healthy-delta-speed20-G0.05-bold_ts.json'
TS_TO_COPY = 'sub-01_desc-50healthy-delta-speed20-G0.05-bold_ts.tsv'
extract_data(path)[source]
extract_file_names(files_list)[source]
get_storage_path(zip_dir)[source]
pytestmark = [Mark(name='skipif', args=(True,), kwargs={'reason': 'Older or incomplete tvb_data'})]
setup()[source]
teardown_method()[source]
test_create_bids_dataset()[source]

Dataset used in this test has 1 Connectivity, 1 Surface, 1 TimeSeries and 1 Functional Connectivity Test that creating a dataset for a single datatype contains all required files are not

test_monitor_bids_dataset()[source]

Dataset used in this test has 1 Connectivity, 1 Surface, 1 TimeSeries and 1 Functional Connectivity. Test that adding a new file to the TS directory will create a dataset with correct files. First TS directory will be moved to the parent directory of subject folder and then we’ll move it back to the subject directory. This way we can check if BIDSDirWatcher is building only when files are added inside subject directories.