def storage_strategy_test7_3(area_test7): s = StorageStrategy(initial_soc=19.96, battery_capacity_kWh=5.01, max_abs_battery_power_kW=5.21, final_selling_rate=17, initial_buying_rate=15, final_buying_rate=16) s.owner = area_test7 s.area = area_test7 s.offers.posted = {Offer('id', 30, 1, 'FakeArea'): area_test7.current_market.id} s.market = area_test7.current_market return s
def storage_strategy_test7_3(area_test7): s = StorageStrategy(initial_capacity_kWh=1.0, battery_capacity_kWh=5.01, max_abs_battery_power_kW=5.21, initial_rate_option=1, break_even=(16, 17)) s.owner = area_test7 s.area = area_test7 s.offers.posted = { Offer('id', 30, 1, 'FakeArea', market=area_test7.current_market): area_test7.current_market } s.market = area_test7.current_market return s