Skip to content

Commit 831ebb8

Browse files
committed
Add more reliable WMS endpoint for testing
1 parent f8cbf65 commit 831ebb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/test_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,16 @@ def test_get_tile_vrt(self):
116116

117117
def test_get_tile_wms(self):
118118
"""Test reading of tile from a WMS endpoint"""
119-
tile = '4686-6267-14'
119+
tile = '146-195-9'
120120
# create tiles directory
121121
dest_folder = 'test'
122122
tiles_dir = op.join(dest_folder, 'tiles')
123123
if not op.isdir(tiles_dir):
124124
makedirs(tiles_dir)
125125

126-
usgs_url = 'https://basemap.nationalmap.gov/arcgis/services/USGSImageryOnly/MapServer/WMSServer?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&LAYERS=0&STYLES=&FORMAT=image%2Fjpeg&TRANSPARENT=false&HEIGHT=256&WIDTH=256&SRS=EPSG%3A3857&BBOX={bbox}'
126+
nasa_url = 'https://gibs.earthdata.nasa.gov/wms/epsg4326/best/wms.cgi?SERVICE=WMS&REQUEST=GetMap&layers=MODIS_Aqua_CorrectedReflectance_TrueColor&version=1.3.0&crs=EPSG:4326&transparent=false&width=256&height=256&bbox={bbox}&format=image/jpeg&time=2019-03-05'
127127

128-
get_tile_wms(tile, usgs_url, tiles_dir, None)
128+
get_tile_wms(tile, nasa_url, tiles_dir, None)
129129
test_tile = Image.open('test/tiles/{}.jpeg'.format(tile))
130130
fixture_tile = Image.open('test/fixtures/{}.jpeg'.format(tile))
131131
self.assertEqual(test_tile, fixture_tile)

0 commit comments

Comments
 (0)