@@ -45,6 +45,8 @@ def test_get_nasa_power(data_index, ghi_series):
45
45
check_freq = False , check_names = False )
46
46
47
47
48
+ @pytest .mark .remote_data
49
+ @pytest .mark .flaky (reruns = RERUNS , reruns_delay = RERUNS_DELAY )
48
50
def test_get_nasa_power_pvlib_params_naming (data_index , ghi_series ):
49
51
data , meta = pvlib .iotools .get_nasa_power (latitude = 44.76 ,
50
52
longitude = 7.64 ,
@@ -58,6 +60,8 @@ def test_get_nasa_power_pvlib_params_naming(data_index, ghi_series):
58
60
check_freq = False )
59
61
60
62
63
+ @pytest .mark .remote_data
64
+ @pytest .mark .flaky (reruns = RERUNS , reruns_delay = RERUNS_DELAY )
61
65
def test_get_nasa_power_map_variables (data_index ):
62
66
# Check that variables are mapped by default to pvlib names
63
67
data , meta = pvlib .iotools .get_nasa_power (latitude = 44.76 ,
@@ -72,6 +76,8 @@ def test_get_nasa_power_map_variables(data_index):
72
76
assert meta ['altitude' ] == 705.88
73
77
74
78
79
+ @pytest .mark .remote_data
80
+ @pytest .mark .flaky (reruns = RERUNS , reruns_delay = RERUNS_DELAY )
75
81
def test_get_nasa_power_wrong_parameter_name (data_index ):
76
82
# Test if HTTPError is raised if a wrong parameter name is asked
77
83
with pytest .raises (HTTPError , match = r"ALLSKY_SFC_SW_DLN" ):
@@ -82,6 +88,8 @@ def test_get_nasa_power_wrong_parameter_name(data_index):
82
88
parameters = ['ALLSKY_SFC_SW_DLN' ])
83
89
84
90
91
+ @pytest .mark .remote_data
92
+ @pytest .mark .flaky (reruns = RERUNS , reruns_delay = RERUNS_DELAY )
85
93
def test_get_nasa_power_duplicate_parameter_name (data_index ):
86
94
# Test if HTTPError is raised if a duplicate parameter is asked
87
95
with pytest .raises (HTTPError , match = r"ALLSKY_SFC_SW_DWN" ):
0 commit comments