From 7aff666a48ee655aaf0203293ead7aa343b8e4e7 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Sun, 18 Feb 2024 21:39:02 -0500 Subject: [PATCH 1/2] fix OpenSearch CREODIAS test --- tests/test_opensearch_creodias.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_opensearch_creodias.py b/tests/test_opensearch_creodias.py index 9bb8fe97..2926d578 100644 --- a/tests/test_opensearch_creodias.py +++ b/tests/test_opensearch_creodias.py @@ -19,7 +19,7 @@ def test_opensearch_creodias(): assert o.description.description == 'Sentinel-1 Collection' assert o.description.language == 'en' - assert len(o.description.urls) == 2 + assert len(o.description.urls) == 1 assert len(o.description.urls['application/json']['parameters']) > 0 From 15bc7b61c2ccb611bf8da2efe67a870fd79849b3 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Sun, 18 Feb 2024 21:44:17 -0500 Subject: [PATCH 2/2] fix flake8 --- owslib/wmts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owslib/wmts.py b/owslib/wmts.py index 19717dc2..3b30780d 100644 --- a/owslib/wmts.py +++ b/owslib/wmts.py @@ -816,7 +816,7 @@ def __init__(self, elem, parent=None, index=0, parse_remote_metadata=False): values = [f.text for f in dim.findall(_DIMENSION_VALUE_TAG)] if len(values) == 0: - raise ValueError( + raise ValueError( '%s list of values can not be empty' % (dim,) ) dimension['values'] = values