diff --git a/tests/test_case/test_published_project.py b/tests/test_case/test_published_project.py index db24f0d..cd1eadf 100644 --- a/tests/test_case/test_published_project.py +++ b/tests/test_case/test_published_project.py @@ -1,3 +1,5 @@ +import pytest + from biosimulators_test_suite import data_model from biosimulators_test_suite.exceptions import InvalidOutputsException, SkippedTestCaseException from biosimulators_test_suite.results.data_model import TestCaseResult, TestCaseResultType @@ -58,6 +60,19 @@ def test_find_cases(self): self.assertEqual(len(all_cases), 0) self.assertEqual(len(compatible_cases), 0) + ### TEMPORARY RBA REMOVAL, REMOVE THIS NEXT SECTION IF RESTORED + with pytest.raises(RuntimeError): + all_cases, _ = find_cases({ + 'algorithms': [ + { + 'id': "rba", + 'kisaoId': {'id': 'KISAO_0000669'}, + 'modelFormats': [{'id': 'format_2585', 'supportedFeatures': []}], + } + ] + }) + + def test_SimulatorCanExecutePublishedProject_description(self): case = SimulatorCanExecutePublishedProject(task_requirements=[ data_model.SedTaskRequirements(model_format='format_2585', simulation_algorithm='KISAO_0000027'), diff --git a/tests/test_examples.py b/tests/test_examples.py index 9ae128e..677a9ad 100644 --- a/tests/test_examples.py +++ b/tests/test_examples.py @@ -1,3 +1,4 @@ +import pytest from biosimulators_utils.combine.io import CombineArchiveReader from biosimulators_utils.combine.data_model import CombineArchiveContentFormat from biosimulators_utils.combine.utils import get_sedml_contents @@ -37,10 +38,10 @@ def tearDown(self): shutil.rmtree(self.dirname) @parameterized.parameterized.expand(EXAMPLES) - def test_example(self, name, example_filename): - ### TEMPORARY RBA REMOVAL - if "rba" in example_filename: - return + def test_example_should_pass(self, name, example_filename): + self.run_test_example(name, example_filename) + + def run_test_example(self, name, example_filename): example_specs_filename = os.path.join(example_filename[0:-5], 'expected-results.json') example_base_dir = os.path.join(os.path.dirname(example_filename))