def test_validate_subtool_metadata(self): validate_subtool_metadata = metadata_validator_factory(SubtoolMetadata) metadata_path = get_tool_metadata('STAR', '2.5', subtool_name='alignReads') validate_subtool_metadata(metadata_path) return
def test_validate_parent_tool_metadata_fail(self): validate_parent_metadata = metadata_validator_factory( ParentToolMetadata) metadata_path = get_tool_metadata('cat', '8.x', parent=True, base_dir=self.invalid_content_dir) with self.assertRaises(AttributeError): validate_parent_metadata(metadata_path) return
def test_validate_subtool_metadata_fail(self): validate_subtool_metadata = metadata_validator_factory(SubtoolMetadata) # metadata_path = Path.cwd() / 'tests/test_files/test_content/invalid_content/cwl-tools/samtools/1.9/samtools_view/samtools-view-metadata.yaml' # Works for now. # subtool name not in parent featurelist. metadata_path = get_tool_metadata('samtools', '1.x', subtool_name='view', base_dir=self.invalid_content_dir) assert metadata_path.exists() with self.assertRaises(ValueError): validate_subtool_metadata(metadata_path) return
def test_validate_parent_tool_metadata(self): validate_parent_metadata = metadata_validator_factory( ParentToolMetadata) metadata_path = get_tool_metadata('STAR', '2.5', parent=True) validate_parent_metadata(metadata_path)