@@ -51,7 +51,7 @@ def expected_meta():
51
51
@pytest .fixture
52
52
def expected_meteonorm_index ():
53
53
expected_meteonorm_index = \
54
- pd .date_range ('2023-01-01' , '2024 -12-31 23:59' , freq = '1h' , tz = 'UTC' ) \
54
+ pd .date_range ('2023-01-01' , '2023 -12-31 23:59' , freq = '1h' , tz = 'UTC' ) \
55
55
+ pd .Timedelta (minutes = 30 )
56
56
expected_meteonorm_index .freq = None
57
57
return expected_meteonorm_index
@@ -114,7 +114,7 @@ def test_get_meteonorm_training(
114
114
expected_meteonorm_data ):
115
115
data , meta = pvlib .iotools .get_meteonorm_observation_training (
116
116
latitude = 50 , longitude = 10 ,
117
- start = '2023-01-01' , end = '2025 -01-01' ,
117
+ start = '2023-01-01' , end = '2024 -01-01' ,
118
118
api_key = demo_api_key ,
119
119
parameters = ['ghi' , 'global_horizontal_irradiance_with_shading' ],
120
120
time_step = '1h' ,
@@ -159,8 +159,8 @@ def test_get_meteonorm_realtime(demo_api_key, demo_url, expected_columns_all):
159
159
def test_get_meteonorm_forecast_basic (demo_api_key , demo_url ):
160
160
data , meta = pvlib .iotools .get_meteonorm_forecast_basic (
161
161
latitude = 50 , longitude = 10 ,
162
- start = pd . Timestamp . now ( tz = 'UTC' ) ,
163
- end = pd .Timestamp .now (tz = 'UTC' ) + pd .Timedelta (hours = 5 ),
162
+ start = '+1hours' ,
163
+ end = pd .Timestamp .now (tz = 'UTC' ) + pd .Timedelta (hours = 6 ),
164
164
api_key = demo_api_key ,
165
165
parameters = 'ghi' ,
166
166
url = demo_url )
0 commit comments