From dbdf9797ae043c1348e3528753fd9334fbce53f6 Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Wed, 3 Apr 2024 11:28:23 +0200 Subject: [PATCH] Remove .tools.gfei_fuel_economy migrated and improved in iiasa/message-ix-models#162 --- .../tests/model/transport/test_data.py | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/message_ix_models/tests/model/transport/test_data.py b/message_ix_models/tests/model/transport/test_data.py index b09203687f..dbb8121e66 100644 --- a/message_ix_models/tests/model/transport/test_data.py +++ b/message_ix_models/tests/model/transport/test_data.py @@ -9,7 +9,6 @@ from message_data.model.transport.testing import MARK from message_data.projects.navigate import T35_POLICY from message_data.testing import assert_units -from message_data.tools.gfei_fuel_economy import get_gfei_data @pytest.mark.parametrize("file", files.FILES, ids=lambda f: "-".join(f.parts)) @@ -128,41 +127,6 @@ def test_get_non_ldv_data(test_context, regions, years="B"): assert_units(data["output"][mask], {"[passenger]": 1, "[length]": 1}) -def test_get_gfei_data(test_context): - test_context.model.regions = "R11" - - df = get_gfei_data(test_context) - - # Data have the expected size - assert 307 == len(df) - - # Data covers all historical periods from the Roadmap model - assert {2017} == set(df["year"].unique()) - # Modes match the list below - assert { - "ICAe_ffv", - "ICAm_ptrp", - "ICH_chyb", - "ICE_conv", - "ELC_100", - "ICE_lpg", - "PHEV_ptrp", - "ICE_nga", - "HFC_ptrp", - } == set(df["technology"].unique()) - - # Data have the expected dimensions - assert { - "technology", - "value", - "ISO_code", - "region", - "year", - "units", - "variable", - } == set(df.columns) - - @pytest.mark.skip("Pending https://github.com/transportenergy/database/issues/75") def test_get_chn_ind_data(): df = get_chn_ind_data()