We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 721c98b commit 688287dCopy full SHA for 688287d
1 file changed
tests/provider/test_wms_facade_provider.py
@@ -50,8 +50,24 @@ def config():
50
}
51
52
53
-def test_query(config):
+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):
59
p = WMSFacadeProvider(config)
60
61
results = p.query()
62
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