Skip to content

Commit

Permalink
Update graph lengths in reporting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
behnam-zakeri committed Dec 2, 2022
1 parent 7792309 commit 6691ee1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions message_ix/tests/test_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_reporter_from_scenario(message_test_mp):
rep = Reporter.from_scenario(scen)

# Number of quantities available in a rudimentary MESSAGEix Scenario
assert len(rep.graph["all"]) == 125
assert len(rep.graph["all"]) == 128

# Quantities have short dimension names
assert "demand:n-c-l-y-h" in rep
Expand All @@ -69,11 +69,11 @@ def test_reporter_from_scenario(message_test_mp):
assert_qty_equal(obs, demand, check_attrs=False)

# ixmp.Reporter pre-populated with only model quantities and aggregates
assert len(rep_ix.graph) == 5609
assert len(rep_ix.graph) == 5899

# message_ix.Reporter pre-populated with additional, derived quantities
# This is the same value as in test_tutorials.py
assert len(rep.graph) == 13074
assert len(rep.graph) == 13364

# Derived quantities have expected dimensions
vom_key = rep.full_key("vom")
Expand Down
2 changes: 1 addition & 1 deletion message_ix/tests/test_tutorials.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
(("westeros", "westeros_addon_technologies"), [], {}),
(("westeros", "westeros_historical_new_capacity"), [], {}),
# NB this is the same value as in test_reporter()
(("westeros", "westeros_report"), [("len-rep-graph", 13074)], {}),
(("westeros", "westeros_report"), [("len-rep-graph", 13364)], {}),
((AT, "austria"), [("solve-objective-value", 206321.90625)], {}),
(
(AT, "austria_single_policy"),
Expand Down

0 comments on commit 6691ee1

Please sign in to comment.