diff --git a/tests/functional/test_hydro_complete_year.py b/tests/functional/test_hydro_complete_year.py index a12961f..4393f86 100644 --- a/tests/functional/test_hydro_complete_year.py +++ b/tests/functional/test_hydro_complete_year.py @@ -10,6 +10,7 @@ # # This file is part of the Antares project. +from pathlib import Path from typing import List, Tuple import numpy as np @@ -32,7 +33,6 @@ TimeSeriesData, create_component, ) -from pathlib import Path from tests.functional.libs.lib_hydro_heuristic import ( HYDRO_MODEL, HYDRO_MODEL_WITH_TARGET, diff --git a/tests/functional/test_hydro_infeasibilities_small_capacity.py b/tests/functional/test_hydro_infeasibilities_small_capacity.py index dd336ce..96187d6 100644 --- a/tests/functional/test_hydro_infeasibilities_small_capacity.py +++ b/tests/functional/test_hydro_infeasibilities_small_capacity.py @@ -237,7 +237,7 @@ def get_database( initial_level = 0.5 * capacity data = HydroHeuristicData( - DataAggregatorParameters(list(range(8760)), list(range(8760))), + DataAggregatorParameters([1] * 8760, list(range(8760))), ReservoirParameters(capacity, initial_level, data_path, 0), ) if inflow_data is None: diff --git a/tests/functional/test_hydro_with_rulecurves.py b/tests/functional/test_hydro_with_rulecurves.py index 092c42e..3e8fc69 100644 --- a/tests/functional/test_hydro_with_rulecurves.py +++ b/tests/functional/test_hydro_with_rulecurves.py @@ -169,12 +169,11 @@ def test_hydro_heuristic_daily_part( def test_complete_year_as_weekly_blocks_with_hydro_heuristic( - expected_weekly_target: List[float], - data_path:str + expected_weekly_target: List[float], data_path: str ) -> None: """Solve weekly problems with heuristic weekly targets for the stock.""" database, network = create_database_and_network( - data_path,HYDRO_MODEL_WITH_TARGET, return_to_initial_level=False + data_path, HYDRO_MODEL_WITH_TARGET, return_to_initial_level=False ) capacity = 1e07