Skip to content

Commit 32e0a5b

Browse files
khaeruglatterf42
authored andcommitted
Expand expected parameters for "transport F::ixmp"
1 parent bb9e52b commit 32e0a5b

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

message_ix_models/tests/model/transport/test_build.py

+13-2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,17 @@ def test_build_existing(tmp_path, test_context, url, solve=False):
207207
"other::F+ixmp": (HasCoords({"technology": ["f rail electr"]}),),
208208
"transport::F+ixmp": (
209209
ContainsDataForParameters(
210-
{"capacity_factor", "input", "output", "technical_lifetime"}
210+
{
211+
"capacity_factor",
212+
"growth_activity_lo",
213+
"growth_activity_up",
214+
"growth_new_capacity_up",
215+
"initial_activity_up",
216+
"initial_new_capacity_up",
217+
"input",
218+
"output",
219+
"technical_lifetime",
220+
}
211221
),
212222
# HasCoords({"technology": ["f rail electr"]}),
213223
),
@@ -311,7 +321,8 @@ def test_debug(
311321
result = insert_checks(c, k, CHECKS, common)
312322

313323
# Show what will be computed
314-
if verbosity == 2:
324+
# k = "pdt:n-y:capita+adj+ssp factor"
325+
if verbosity:
315326
print(c.describe(k))
316327

317328
# Compute the test key

message_ix_models/tests/model/transport/test_data.py

+5
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ def test_get_freight_data(test_context, regions="R12", years="B"):
5757
# Data are provided for these parameters
5858
assert {
5959
"capacity_factor",
60+
"growth_activity_lo",
61+
"growth_activity_up",
62+
"growth_new_capacity_up",
63+
"initial_activity_up",
64+
"initial_new_capacity_up",
6065
"input",
6166
"output",
6267
"technical_lifetime",

0 commit comments

Comments
 (0)