Skip to content

Commit 92cc4f8

Browse files
committed
add pytestmark to test_forecast
1 parent 06eca3f commit 92cc4f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pvlib/test/test_forecast.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
from conftest import requires_siphon, has_siphon
1313

14+
pytestmark = pytest.mark.skipif(not has_siphon, reason='requires siphon')
15+
1416
from pvlib.location import Location
1517

1618
if has_siphon:
@@ -34,6 +36,8 @@
3436
'mid_clouds', 'high_clouds', 'dni', 'dhi', 'ghi',]
3537
_nonnan_variables = ['temp_air', 'wind_speed', 'total_clouds', 'dni',
3638
'dhi', 'ghi',]
39+
else:
40+
_modelclasses = []
3741

3842

3943
# make a model object for each model class

0 commit comments

Comments
 (0)