Ruff format

This commit is contained in:
Chris
2024-10-10 15:00:32 +02:00
committed by Andreas
parent 5503b8876c
commit e65eb6b6dd
19 changed files with 101 additions and 286 deletions

View File

@@ -9,9 +9,7 @@ from akkudoktoreos.config import output_dir
DIR_TESTDATA = Path(__file__).parent / "testdata"
@pytest.mark.parametrize(
"fn_in, fn_out", [("optimize_input_1.json", "optimize_result_1.json")]
)
@pytest.mark.parametrize("fn_in, fn_out", [("optimize_input_1.json", "optimize_result_1.json")])
def test_optimize(fn_in, fn_out):
# Load input and output data
with open(DIR_TESTDATA / fn_in, "r") as f_in:
@@ -26,9 +24,7 @@ def test_optimize(fn_in, fn_out):
start_hour = 10
# Call the optimization function
ergebnis = opt_class.optimierung_ems(
parameter=input_data, start_hour=start_hour, ngen=3
)
ergebnis = opt_class.optimierung_ems(parameter=input_data, start_hour=start_hour, ngen=3)
# Assert that the output contains all expected entries.
# This does not assert that the optimization always gives the same result!