Skip to content

Commit b0c1392

Browse files
committed
Adding tests for tile providers
1 parent a8d8365 commit b0c1392

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_providers.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import contextily as ctx
2+
import contextily.tile_providers as tilers
3+
4+
def test_sources():
5+
# NOTE: only tests they download, does not check pixel values
6+
w, s, e, n = (-106.6495132446289, 25.845197677612305,
7+
-93.50721740722656, 36.49387741088867)
8+
sources = [i for i in dir(tilers) if i[0] != '_']
9+
for src in sources:
10+
img, ext = ctx.bounds2img(w, s, e, n, 4, ll=True)
11+

0 commit comments

Comments
 (0)