Skip to content

Commit 0279a92

Browse files
committed
Extend test coverage
1 parent 6e8a3f9 commit 0279a92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/iotools/test_meteonorm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def expected_meta():
5151
@pytest.fixture
5252
def expected_meteonorm_index():
5353
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') \
5555
+ pd.Timedelta(minutes=30)
5656
expected_meteonorm_index.freq = None
5757
return expected_meteonorm_index
@@ -114,7 +114,7 @@ def test_get_meteonorm_training(
114114
expected_meteonorm_data):
115115
data, meta = pvlib.iotools.get_meteonorm_observation_training(
116116
latitude=50, longitude=10,
117-
start='2023-01-01', end='2025-01-01',
117+
start='2023-01-01', end='2024-01-01',
118118
api_key=demo_api_key,
119119
parameters=['ghi', 'global_horizontal_irradiance_with_shading'],
120120
time_step='1h',
@@ -159,8 +159,8 @@ def test_get_meteonorm_realtime(demo_api_key, demo_url, expected_columns_all):
159159
def test_get_meteonorm_forecast_basic(demo_api_key, demo_url):
160160
data, meta = pvlib.iotools.get_meteonorm_forecast_basic(
161161
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),
164164
api_key=demo_api_key,
165165
parameters='ghi',
166166
url=demo_url)

0 commit comments

Comments
 (0)