diff --git a/message_ix_models/tests/model/water/test_cooling.py b/message_ix_models/tests/model/water/test_cooling.py index fa44ac849d..7de19ad0f3 100644 --- a/message_ix_models/tests/model/water/test_cooling.py +++ b/message_ix_models/tests/model/water/test_cooling.py @@ -16,7 +16,7 @@ def test_non_cooling_tec(test_context): s.add_horizon(year=[2020, 2030, 2040]) s.add_set("technology", ["tech1", "tech2"]) s.add_set("node", ["loc1", "loc2"]) - s.add_set("year", [2020,2030, 2040]) + s.add_set("year", [2020, 2030, 2040]) # TODO: this is where you would add # "node_loc": ["loc1", "loc2"], diff --git a/message_ix_models/tests/model/water/test_irrigation.py b/message_ix_models/tests/model/water/test_irrigation.py index bd71cdc690..43188cae29 100644 --- a/message_ix_models/tests/model/water/test_irrigation.py +++ b/message_ix_models/tests/model/water/test_irrigation.py @@ -7,7 +7,6 @@ def test_add_irr_structure(test_context): - context = test_context mp = context.get_platform() scenario_info = { @@ -20,7 +19,7 @@ def test_add_irr_structure(test_context): s.add_horizon(year=[2020, 2030, 2040]) s.add_set("technology", ["tech1", "tech2"]) s.add_set("node", ["loc1", "loc2"]) - s.add_set("year", [2020,2030, 2040]) + s.add_set("year", [2020, 2030, 2040]) # Mock the DataFrame read from CSV df_node = pd.DataFrame({"BCU_name": ["1", "2"], "REGION": ["region1", "region2"]}) diff --git a/message_ix_models/tests/model/water/test_water_supply.py b/message_ix_models/tests/model/water/test_water_supply.py index 86c62ceccf..50f2defd8f 100644 --- a/message_ix_models/tests/model/water/test_water_supply.py +++ b/message_ix_models/tests/model/water/test_water_supply.py @@ -77,7 +77,7 @@ def test_add_water_supply(test_context): s.add_horizon(year=[2020, 2030, 2040]) s.add_set("technology", ["tech1", "tech2"]) s.add_set("node", ["loc1", "loc2"]) - s.add_set("year", [2020,2030, 2040]) + s.add_set("year", [2020, 2030, 2040]) # Mock the DataFrames read from CSV df_node = pd.DataFrame({"BCU_name": ["test_BCU"], "REGION": ["test_REGION"]}) @@ -153,9 +153,7 @@ def test_add_e_flow(): return_value=(df_sw, df_sw), ), patch( "message_ix_models.util.private_data_path", return_value="path/to/file" - ), patch( - "pandas.read_csv", return_value=df_sw - ): + ), patch("pandas.read_csv", return_value=df_sw): # Call the function to be tested result = add_e_flow(context)