Skip to content

Commit

Permalink
Allow test to run offline and for all WMS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
geographika committed Nov 9, 2024
1 parent 40cfa45 commit b8b0c20
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_wms_getmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,15 @@ def wms():
return WebMapService_1_3_0(SERVICE_URL, version='1.3.0')


def test_build_getmap_request_bbox_precision(wms):
@pytest.mark.parametrize("version", ["1.3.0", "1.1.1"])
def test_build_getmap_request_bbox_precision(version):
bbox = (-126.123456789, 24.123456789, -66.123456789, 50.123456789)
bbox_yx = (bbox[1], bbox[0], bbox[3], bbox[2])
request = wms._WebMapService_1_3_0__build_getmap_request(

m = mock.Mock()
type(m).version = mock.PropertyMock(return_value=version)

request = WebMapService_1_3_0._WebMapService_1_3_0__build_getmap_request(m,
layers=['layer1'],
styles=['default'],
srs='EPSG:4326',
Expand Down

0 comments on commit b8b0c20

Please sign in to comment.