Skip to content

Commit

Permalink
fix OpenSearch CREODIAS test (#906)
Browse files Browse the repository at this point in the history
* fix OpenSearch CREODIAS test
* fix flake8
  • Loading branch information
tomkralidis authored Feb 19, 2024
1 parent 76723f9 commit 882eb48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion owslib/wmts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_opensearch_creodias.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 882eb48

Please sign in to comment.