mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-07-24 10:48:11 +00:00
fix: data management conversion to async (#1185)
Fix test warnings left over from data management conversion to async design. Mostly tagging async tests. Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
@@ -36,7 +36,6 @@ def compare_dict(actual: dict[str, Any], expected: dict[str, Any]):
|
||||
else:
|
||||
assert actual[key] == pytest.approx(value)
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.parametrize(
|
||||
"fn_in, fn_out, ngen, break_even",
|
||||
@@ -48,7 +47,7 @@ def compare_dict(actual: dict[str, Any], expected: dict[str, Any]):
|
||||
("optimize_input_2.json", "optimize_result_2_be.json", 3, 1),
|
||||
],
|
||||
)
|
||||
def test_optimize(
|
||||
async def test_optimize(
|
||||
fn_in: str,
|
||||
fn_out: str,
|
||||
ngen: int,
|
||||
@@ -147,7 +146,7 @@ def test_optimize(
|
||||
compare_dict(genetic_solution.model_dump(), expected_result.model_dump())
|
||||
|
||||
# Check the correct generic optimization solution is created
|
||||
optimization_solution = genetic_solution.optimization_solution()
|
||||
optimization_solution = await genetic_solution.optimization_solution()
|
||||
# @TODO
|
||||
|
||||
# Check the correct generic energy management plan is created
|
||||
|
||||
Reference in New Issue
Block a user