Skip to content

Commit

Permalink
Adding tests for tile providers
Browse files Browse the repository at this point in the history
  • Loading branch information
darribas committed Sep 16, 2016
1 parent a8d8365 commit b0c1392
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_providers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import contextily as ctx
import contextily.tile_providers as tilers

def test_sources():
# NOTE: only tests they download, does not check pixel values
w, s, e, n = (-106.6495132446289, 25.845197677612305,
-93.50721740722656, 36.49387741088867)
sources = [i for i in dir(tilers) if i[0] != '_']
for src in sources:
img, ext = ctx.bounds2img(w, s, e, n, 4, ll=True)

0 comments on commit b0c1392

Please sign in to comment.