Skip to content

Commit ca7fd47

Browse files
author
doublebyte1
committed
- Make test_tilematrixsets search for tms in either position of the array
1 parent 5ed31b4 commit ca7fd47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/api/test_tiles.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ 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']
100-
99+
in root['tileMatrixSets'][0]['uri'] or root['tileMatrixSets'][1]['uri'] # noqa
100+
101101
req = mock_api_request({'f': 'html'})
102102
rsp_headers, code, response = tilematrixsets(api_, req)
103103
assert rsp_headers['Content-Type'] == FORMAT_TYPES[F_HTML]

0 commit comments

Comments
 (0)