def pv_test66(area_test66): p = PVPredefinedStrategy( cloud_coverage=ConstSettings.PVSettings.DEFAULT_POWER_PROFILE) p.area = area_test66 p.owner = area_test66 p.offers.posted = {} return p
def pv_test4(area_test3, called): p = PVPredefinedStrategy(cloud_coverage=ConstSettings.PVSettings.DEFAULT_POWER_PROFILE) p.area = area_test3 p.owner = area_test3 p.offers.posted = { Offer(id='id', price=20, energy=1, seller='FakeArea'): area_test3.test_market.id } return p
def pv_test3(area_test3): p = PVPredefinedStrategy( cloud_coverage=ConstSettings.PVSettings.DEFAULT_POWER_PROFILE) p.area = area_test3 p.owner = area_test3 p.offers.posted = { Offer('id', 30, 1, 'FakeArea'): area_test3.test_market.id } return p
def pv_test_cloudy(area_test7): p = PVPredefinedStrategy(cloud_coverage=1) p.area = area_test7 p.owner = area_test7 return p
def pv_test_partial(area_test7): p = PVPredefinedStrategy(cloud_coverage=2) p.area = area_test7 p.owner = area_test7 return p
def pv_test_sunny(area_test3): p = PVPredefinedStrategy(cloud_coverage=0) p.area = area_test3 p.owner = area_test3 return p
def pv_test5(area_test3, called): p = PVPredefinedStrategy(cloud_coverage=0) p.area = area_test3 p.owner = area_test3 p.offers.posted = {'id': area_test3.test_market} return p
def pv_test1(area_test1): p = PVPredefinedStrategy(cloud_coverage=ConstSettings.PVSettings.DEFAULT_POWER_PROFILE) p.area = area_test1 p.owner = area_test1 return p
def pv_test_cloudy(area_test7): p = PVPredefinedStrategy(cloud_coverage=1) p.area = area_test7 p.owner = area_test7 p.area.config.slot_length = duration(minutes=20) return p