Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add test to check extracting utf8grid data

  • Loading branch information...
commit 7b78bcfe1cbc6c5989161e9130531a132c2e2d11 1 parent b27d219
@manelclos manelclos authored
Showing with 7 additions and 0 deletions.
  1. BIN  test/data/utf8grid.mbtiles
  2. +7 −0 test/test.py
View
BIN  test/data/utf8grid.mbtiles
Binary file not shown
View
7 test/test.py
@@ -21,3 +21,10 @@ def test_mbtiles_to_disk_and_back():
assert os.path.exists('test/output/1.0.0/shadowplay/0/0/0.png')
disk_to_mbtiles('test/output/one', 'test/output/one.mbtiles')
assert os.path.exists('test/output/one.mbtiles')
+
+@with_setup(clear_data, clear_data)
+def test_utf8grid_mbtiles_to_disk():
+ mbtiles_to_disk('test/data/utf8grid.mbtiles', 'test/output')
+ assert os.path.exists('test/output/1.0.0/utf8grid/0/0/0.grid.json')
+ assert os.path.exists('test/output/1.0.0/utf8grid/0/0/0.png')
+ assert os.path.exists('test/output/metadata.json')
Please sign in to comment.
Something went wrong with that request. Please try again.