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 77testfile = DATA_DIR / 'surfrad-slv16001.dat'
88network_testfile = ('ftp://aftp.cmdl.noaa.gov/data/radiation/surfrad/'
99 'Alamosa_CO/2016/slv16001.dat' )
10+ https_testfile = ('https://gml.noaa.gov/aftp/data/radiation/surfrad/'
11+ 'Alamosa_CO/2016/slv16001.dat' )
1012
1113
1214@pytest .mark .remote_data
@@ -19,6 +21,17 @@ def test_read_surfrad_network():
1921 assert local_data .equals (network_data )
2022
2123
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+
2235def test_read_surfrad_columns_no_map ():
2336 data , _ = surfrad .read_surfrad (testfile , map_variables = False )
2437 assert 'zen' in data .columns
You can’t perform that action at this time.
0 commit comments