From ab3418c37c9cb70ad4be7e43f745f2c001fe156b Mon Sep 17 00:00:00 2001 From: LKuemmel Date: Thu, 5 Dec 2024 12:48:50 +0100 Subject: [PATCH] fix test --- packages/control/algorithm/surplus_controlled_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/control/algorithm/surplus_controlled_test.py b/packages/control/algorithm/surplus_controlled_test.py index 608f02994c..feea652514 100644 --- a/packages/control/algorithm/surplus_controlled_test.py +++ b/packages/control/algorithm/surplus_controlled_test.py @@ -63,7 +63,7 @@ def setup_cp(cp: Chargepoint, feed_in_limit: bool) -> Chargepoint: def test_limit_adjust_current(new_current: float, expected_current: float, monkeypatch): # setup cp = Chargepoint(0, None) - cp.data = ChargepointData(get=Get(currents=[15]*3)) + cp.data = ChargepointData(get=Get(charge_state=True, currents=[15]*3)) cp.template = CpTemplate() monkeypatch.setattr(Chargepoint, "set_state_and_log", Mock())