Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust reporting tests for new is_capacity_factor item
Browse files Browse the repository at this point in the history
khaeru committed Apr 25, 2022
1 parent bf145f9 commit 1dec9a5
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions message_ix/tests/test_reporting.py
Original file line number Diff line number Diff line change
@@ -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) == 5224
assert len(rep_ix.graph) == 5225

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

# Derived quantities have expected dimensions
vom_key = rep.full_key("vom")
2 changes: 1 addition & 1 deletion message_ix/tests/test_tutorials.py
Original file line number Diff line number Diff line change
@@ -51,7 +51,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", 12689)], {}),
(("westeros", "westeros_report"), [("len-rep-graph", 12690)], {}),
((AT, "austria"), [("solve-objective-value", 206321.90625)], {}),
(
(AT, "austria_single_policy"),

0 comments on commit 1dec9a5

Please sign in to comment.