Skip to content

Commit

Permalink
Add test_check_existing()
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Aug 27, 2021
1 parent 71ea5b7 commit 00c6e3d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions message_ix/tests/tools/test_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,27 @@ def test_check_westeros(test_mp):
# Checks fail
results = check(scen, config=config)
assert not results[0]


@pytest.mark.parametrize(
"url, config",
[
# ("ixmp://platform/model/scenario#version", dict()),
],
)
def test_check_existing(url, config):
"""Check existing scenarios.
For local use only: extend the list of parameters, above, but do not commit
additions to ``main``.
"""
# import pint
# from iam_units import registry
#
# pint.set_application_registry(registry)

scen, mp = Scenario.from_url(url)
results = check(scen, config=config)

# Checks all pass
assert results[0], "\n".join(map(str, results))

0 comments on commit 00c6e3d

Please sign in to comment.