Skip to content

Commit 63a4b0c

Browse files
committed
Update the length of the graphs in reporting tests
1 parent bafae34 commit 63a4b0c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

message_ix/tests/test_reporting.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_reporter_from_scenario(message_test_mp):
5151
rep = Reporter.from_scenario(scen)
5252

5353
# Number of quantities available in a rudimentary MESSAGEix Scenario
54-
assert len(rep.graph["all"]) == 128
54+
assert len(rep.graph["all"]) == 129
5555

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

7171
# ixmp.Reporter pre-populated with only model quantities and aggregates
72-
assert len(rep_ix.graph) == 5899
72+
assert len(rep_ix.graph) == 5915
7373

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

7878
# Derived quantities have expected dimensions
7979
vom_key = rep.full_key("vom")

message_ix/tests/test_tutorials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _t(group: Union[str, None], basename: str, *, check=None, marks=None):
8787
_t("w0", f"{W}_historical_new_capacity"),
8888
_t("w0", f"{W}_multinode"),
8989
# NB this is the same value as in test_reporter()
90-
_t(None, f"{W}_report", check=[("len-rep-graph", 13074)], marks=MARK[2]),
90+
_t(None, f"{W}_report", check=[("len-rep-graph", 13380)], marks=MARK[2]),
9191
_t("at0", "austria", check=[("solve-objective-value", 206321.90625)]),
9292
_t("at0", "austria_single_policy", check=[("solve-objective-value", 205310.34375)]),
9393
_t("at0", "austria_multiple_policies"),

0 commit comments

Comments
 (0)