#NEWLINE# @ pytest . fixture #NEWLINE# def consumption_data_kWh_interval( ) : #NEWLINE# #INDENT# records = [ { #NEWLINE# #INDENT# 'start' : datetime ( 2015 , 1 , ( i + 1 ) ) , #NEWLINE# 'value' : 1 , #NEWLINE# #UNINDENT# } for i in range ( 10 ) ] #NEWLINE# return ConsumptionData ( records , 'electricity' , 'kWh' , freq = 'D' )