Skip to content

Commit 688287d

Browse files
committed
- updated unit tests for the wms_facade provider
1 parent 721c98b commit 688287d

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

tests/provider/test_wms_facade_provider.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,24 @@ def config():
5050
}
5151

5252

53-
def test_query(config):
53+
def check_is_PNG(results):
54+
assert isinstance(results, bytes)
55+
assert results[1:4] == b'PNG'
56+
57+
58+
def test_default_query(config):
5459
p = WMSFacadeProvider(config)
5560

5661
results = p.query()
5762
assert len(results) > 0
63+
check_is_PNG(results)
64+
65+
66+
def test_crs_query(config):
67+
p = WMSFacadeProvider(config)
68+
69+
results1 = p.query(crs='http://www.opengis.net/def/crs/EPSG/0/3857')
70+
results2 = p.query(crs='http://www.opengis.net/def/crs/EPSG/0/4326')
71+
72+
check_is_PNG(results1)
73+
check_is_PNG(results2)

0 commit comments

Comments
 (0)