def test_parse_pipelines_mix(self): """Checks if parser accepts custom pipeline mixed with fmridenise.pipeline""" addition = join(dirname(__file__), "custom_pipeline.json") custom = self.all_pipelines_valid.copy() custom.add(addition) paths = parse_pipelines(custom) self.assertSetEqual(paths, custom)
def test_parse_pipelines_known_pipeline(self): selected = "pipeline-24HMP_8Phys_SpikeReg_4GS" selected_path = {(join(self.pipelines_dir, selected) + ".json")} paths = parse_pipelines([ selected ]) # __main__ always return list of paths/selected pipelines names self.assertSetEqual(paths, selected_path)
def test_parse_pipelines_known_pipeline(self): """Checks if parser accepts pipeline from fmridenoise selected by name""" selected = "pipeline-24HMP_8Phys_SpikeReg_4GS" selected_path = {(join(self.pipelines_dir, selected) + ".json")} paths = parse_pipelines([ selected ]) # __main__ always return list of paths/selected pipelines names self.assertSetEqual(paths, selected_path)
def test_parse_pipelines_mix(self): addition = join(dirname(__file__), "custom_pipeline.json") custom = self.all_pipelines_valid.copy() custom.add(addition) paths = parse_pipelines(custom) self.assertSetEqual(paths, custom)
def test_parse_pipelines_custom(self): custom = {join(dirname(__file__), "custom_pipeline.json")} paths = parse_pipelines(custom) self.assertSetEqual(custom, paths)
def test_parse_pipelines_without_custom_noicaaroma(self): paths = parse_pipelines("all", False) self.assertSetEqual(self.noicaaroma_pipelines_valid, paths)
def test_parse_pipelines_without_custom(self): paths = parse_pipelines("all", True) self.assertSetEqual(self.all_pipelines_valid, paths)
def test_parse_pipelines_custom(self): """Checks if parser accepts only custom pipeline""" custom = {join(dirname(__file__), "custom_pipeline.json")} paths = parse_pipelines(custom) self.assertSetEqual(custom, paths)
def test_parse_pipelines_without_custom(self): """Checks if parser accepts all pipelines from fmridenoise.pipeline""" paths = parse_pipelines("all") self.assertSetEqual(self.all_pipelines_valid, paths)