Skip to content

Commit 20ddc0a

Browse files
doublebyte1doublebyte1
andauthored
Fix error on the test_tilematrixsets test (#2121)
* - Make test_tilematrixsets search for tms in either position of the array * - fixed flake8 error --------- Co-authored-by: doublebyte1 <[email protected]>
1 parent ee73830 commit 20ddc0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/api/test_tiles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ def test_tilematrixsets(config, api_):
9494
assert 'tileMatrixSets' in root
9595
assert len(root['tileMatrixSets']) == 2
9696
assert 'http://www.opengis.net/def/tilematrixset/OGC/1.0/WorldCRS84Quad' \
97-
in root['tileMatrixSets'][0]['uri']
97+
in root['tileMatrixSets'][0]['uri'] or root['tileMatrixSets'][1]['uri'] # noqa
9898
assert 'http://www.opengis.net/def/tilematrixset/OGC/1.0/WebMercatorQuad' \
99-
in root['tileMatrixSets'][1]['uri']
99+
in root['tileMatrixSets'][0]['uri'] or root['tileMatrixSets'][1]['uri'] # noqa
100100

101101
req = mock_api_request({'f': 'html'})
102102
rsp_headers, code, response = tilematrixsets(api_, req)

0 commit comments

Comments
 (0)