From abba7be27a659b16efca617da00cc0af835ab4cb Mon Sep 17 00:00:00 2001 From: adrivinca Date: Wed, 30 Oct 2024 10:56:31 +0100 Subject: [PATCH] Fix test parameter and numbers --- .../tests/model/water/data/test_water_for_ppl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/message_ix_models/tests/model/water/data/test_water_for_ppl.py b/message_ix_models/tests/model/water/data/test_water_for_ppl.py index dace7352e5..d7e92f8372 100644 --- a/message_ix_models/tests/model/water/data/test_water_for_ppl.py +++ b/message_ix_models/tests/model/water/data/test_water_for_ppl.py @@ -223,7 +223,7 @@ def par( "node_loc": ["R12_AFR", "R12_AFR", "R12_AFR"], "technology": ["coal_ppl", "coal_ppl", "coal_ppl"], year_type: [2030, 2040, 2050], - "value": [15, 30, 32], + "value": [15, 150, 2000], } ) @@ -234,7 +234,7 @@ def par( ) def test_relax_growth_constraint(constraint_type, year_type): # Sample data for g_lo - g_lo = pd.DataFrame( + g_up = pd.DataFrame( { "node_loc": ["R12_AFR", "R12_AFR", "R12_AFR", "R12_AFR"], "technology": [ @@ -278,7 +278,7 @@ def test_relax_growth_constraint(constraint_type, year_type): scen = MockScenario() # Call the function with mock data - result = relax_growth_constraint(ref_hist, scen, cooling_df, g_lo, constraint_type) + result = relax_growth_constraint(ref_hist, scen, cooling_df, g_up, constraint_type) # reset_index to make the comparison easier result = result.reset_index(drop=True)