Skip to content

Commit

Permalink
Created separate test_tiles_single_zoom function
Browse files Browse the repository at this point in the history
  • Loading branch information
fxjung committed May 17, 2018
1 parent af71f60 commit 31564eb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,17 @@ def test_tile_truncate():
def test_tiles():
bounds = (-105, 39.99, -104.99, 40)
tiles = list(mercantile.tiles(*bounds, zooms=[14]))
tiles_single_zoom = list(mercantile.tiles(*bounds, zooms=14))
expect = [mercantile.Tile(x=3413, y=6202, z=14),
mercantile.Tile(x=3413, y=6203, z=14)]
assert sorted(tiles) == sorted(expect)
assert sorted(tiles_single_zoom) == sorted(expect)


def test_tiles_single_zoom():
bounds = (-105, 39.99, -104.99, 40)
tiles = list(mercantile.tiles(*bounds, zooms=14))
expect = [mercantile.Tile(x=3413, y=6202, z=14),
mercantile.Tile(x=3413, y=6203, z=14)]
assert sorted(tiles) == sorted(expect)


def test_tiles_truncate():
Expand Down

0 comments on commit 31564eb

Please sign in to comment.