Skip to content

Commit

Permalink
Apply ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
awais307 authored and glatterf42 committed Nov 29, 2023
1 parent 79307b0 commit df1818c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions message_ix_models/tests/model/water/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

import pandas as pd
import xarray as xr
from sdmx.model.v21 import Code

from message_ix_models import Context
from message_ix_models.model.water.utils import (
add_commodity_and_level,
map_add_on,
map_yv_ya_lt,
read_config,
)
from message_ix_models import Context
from sdmx.model.v21 import Code


def test_read_config():
Expand Down
6 changes: 4 additions & 2 deletions message_ix_models/tests/model/water/test_water_supply.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def test_add_water_supply():
with patch(
"message_ix_models.util.private_data_path", return_value="path/to/file"
), patch("pandas.read_csv", return_value=df_node), patch(
"message_ix_models.model.water.water_supply.map_basin_region_wat", return_value=df_sw # Adjust this import
"message_ix_models.model.water.water_supply.map_basin_region_wat",
return_value=df_sw # Adjust this import
):
# Call the function to be tested
result = add_water_supply(context)
Expand Down Expand Up @@ -135,7 +136,8 @@ def test_add_e_flow():

# Mock the function 'read_water_availability' to return the mocked DataFrame
with patch(
"message_ix_models.model.water.demands.read_water_availability", return_value=(df_sw, df_sw)
"message_ix_models.model.water.demands.read_water_availability",
return_value=(df_sw, df_sw)
), patch(
"message_ix_models.util.private_data_path", return_value="path/to/file"
), patch(
Expand Down

0 comments on commit df1818c

Please sign in to comment.