Skip to content

Commit

Permalink
Merge pull request #2264 from greglucas/owslib-xfail
Browse files Browse the repository at this point in the history
Add xfails to current owslib failures
  • Loading branch information
rcomer committed Oct 12, 2023
2 parents 24b9235 + d16768e commit 96bf57d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@
sphinx_gallery_conf = {
'capture_repr': (),
'examples_dirs': ['../../examples'],
# NASA wmts servers are returning bad content metadata
"expected_failing_examples": [
'../../examples/web_services/reprojected_wmts.py',
'../../examples/web_services/wmts.py',
'../../examples/web_services/wmts_time.py',
],
'filename_pattern': '^((?!sgskip).)*$',
'gallery_dirs': ['gallery'],
'within_subsection_order': ExampleTitleSortKey,
Expand Down
2 changes: 1 addition & 1 deletion examples/miscellanea/eccentric_ellipse.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def vesta_image():
the ``img_proj`` coordinate system.
"""
url = 'https://www.nasa.gov/sites/default/files/pia17037.jpg'
url = 'https://photojournal.jpl.nasa.gov/jpeg/PIA17037.jpg'
img_handle = BytesIO(urlopen(url).read())
raw_image = Image.open(img_handle)
# The image is extremely high-resolution, which takes a long time to
Expand Down
1 change: 1 addition & 0 deletions lib/cartopy/tests/io/test_ogc_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def test_float_resolution(self):
@pytest.mark.filterwarnings("ignore:TileMatrixLimits")
@pytest.mark.network
@pytest.mark.skipif(not _OWSLIB_AVAILABLE, reason='OWSLib is unavailable.')
@pytest.mark.xfail(reason='NASA servers are returning bad content metadata')
class TestWMTSRasterSource:
URI = 'https://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi'
layer_name = 'VIIRS_CityLights_2012'
Expand Down
1 change: 1 addition & 0 deletions lib/cartopy/tests/mpl/test_caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def test_contourf_transform_path_counting():
@pytest.mark.filterwarnings("ignore:TileMatrixLimits")
@pytest.mark.network
@pytest.mark.skipif(not _OWSLIB_AVAILABLE, reason='OWSLib is unavailable.')
@pytest.mark.xfail(reason='NASA servers are returning bad content metadata')
def test_wmts_tile_caching():
image_cache = WMTSRasterSource._shared_image_cache
image_cache.clear()
Expand Down
1 change: 1 addition & 0 deletions lib/cartopy/tests/mpl/test_web_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
@pytest.mark.network
@pytest.mark.skipif(not _OWSLIB_AVAILABLE, reason='OWSLib is unavailable.')
@pytest.mark.mpl_image_compare(filename='wmts.png', tolerance=0.03)
@pytest.mark.xfail(reason='NASA servers are returning bad content metadata')
def test_wmts():
ax = plt.axes(projection=ccrs.PlateCarree())
url = 'https://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi'
Expand Down

0 comments on commit 96bf57d

Please sign in to comment.