Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Dec 9, 2019
1 parent 4d8c556 commit 4ea4845
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/plugins/support/PythonSupport/tests/data/tests.py
Expand Up @@ -50,6 +50,8 @@ def test_simulation(title: str, file_name_or_url: str, first: bool = True) -> No
oc.close_simulation(simulation)


# Test for an unknown local/remote file

try:
test_simulation('Unknown local file', 'unknown')
except Exception as e:
Expand All @@ -61,6 +63,8 @@ def test_simulation(title: str, file_name_or_url: str, first: bool = True) -> No
except Exception as e:
print(repr(e))

# Test for an invalid local/remote file

try:
test_simulation('Invalid local file', 'cellml/underconstrained_model.cellml', False)
except Exception as e:
Expand All @@ -73,14 +77,20 @@ def test_simulation(title: str, file_name_or_url: str, first: bool = True) -> No
except Exception as e:
print(repr(e))

# Test for a local/remote CellML file

test_simulation('Local CellML file', 'cellml/lorenz.cellml', False)
test_simulation('Remote CellML file',
'https://raw.githubusercontent.com/opencor/opencor/master/models/tests/cellml/lorenz.cellml', False)

# Test for a local/remote SED-ML file

test_simulation('Local SED-ML file', 'sedml/lorenz.sedml', False)
test_simulation('Remote SED-ML file',
'https://raw.githubusercontent.com/opencor/opencor/master/models/tests/sedml/lorenz.sedml', False)

# Test for a local/remote COMBINE archive

test_simulation('Local COMBINE archive', 'combine/lorenz.omex', False)
test_simulation('Remote COMBINE archive',
'https://raw.githubusercontent.com/opencor/opencor/master/models/tests/combine/lorenz.omex', False)

0 comments on commit 4ea4845

Please sign in to comment.