File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 7
7
testfile = DATA_DIR / 'surfrad-slv16001.dat'
8
8
network_testfile = ('ftp://aftp.cmdl.noaa.gov/data/radiation/surfrad/'
9
9
'Alamosa_CO/2016/slv16001.dat' )
10
+ https_testfile = ('https://gml.noaa.gov/aftp/data/radiation/surfrad/'
11
+ 'Alamosa_CO/2016/slv16001.dat' )
10
12
11
13
12
14
@pytest .mark .remote_data
@@ -19,6 +21,17 @@ def test_read_surfrad_network():
19
21
assert local_data .equals (network_data )
20
22
21
23
24
+ @pytest .mark .remote_data
25
+ @pytest .mark .flaky (reruns = RERUNS , reruns_delay = RERUNS_DELAY )
26
+ def test_read_surfrad_https ():
27
+ # Test reading of https files.
28
+ # If this test begins failing, SURFRAD's data structure or data
29
+ # archive may have changed.
30
+ local_data , _ = surfrad .read_surfrad (testfile )
31
+ network_data , _ = surfrad .read_surfrad (https_testfile )
32
+ assert local_data .equals (network_data )
33
+
34
+
22
35
def test_read_surfrad_columns_no_map ():
23
36
data , _ = surfrad .read_surfrad (testfile , map_variables = False )
24
37
assert 'zen' in data .columns
You can’t perform that action at this time.
0 commit comments