From 6691ee1cf2ed936b990d9fa67fda2a65fbd2c97b Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 1 Dec 2022 15:10:31 +0100 Subject: [PATCH] Update graph lengths in reporting tests --- message_ix/tests/test_reporting.py | 6 +++--- message_ix/tests/test_tutorials.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/message_ix/tests/test_reporting.py b/message_ix/tests/test_reporting.py index b157bac6a..e37ee7f47 100644 --- a/message_ix/tests/test_reporting.py +++ b/message_ix/tests/test_reporting.py @@ -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 @@ -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") diff --git a/message_ix/tests/test_tutorials.py b/message_ix/tests/test_tutorials.py index c5d5f90e4..b570af829 100644 --- a/message_ix/tests/test_tutorials.py +++ b/message_ix/tests/test_tutorials.py @@ -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"),