Skip to content

Commit

Permalink
update tests and add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Jun 27, 2019
1 parent 1b13631 commit 7e9eda6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
NEXT (TBD)
----------
- update tests for new vector-tile-base version

0.0.1dev1 (2019-06-25)
----------------------
- Fix missing files in package

0.0.1dev0 (2019-06-24)
----------------------
- Initial release.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

inst_reqs = ["numpy", "vtzero"]

vt = "vector-tile-base @ git+https://github.com/mapbox/vector-tile-base.git@93c87d370dd68d3710bcf20c55d336c32750246e"
vt = "vector-tile-base @ git+https://github.com/mapbox/vector-tile-base.git"
extra_reqs = {
"test": [vt, "rio-tiler", "pytest", "pytest-cov"],
"dev": [vt, "rio-tiler", "pytest", "pytest-cov", "pre-commit"],
Expand Down
6 changes: 3 additions & 3 deletions tests/test_mvt.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_mvt_encoder():
assert len(layer.features) == 75
feat = layer.features[0]
assert feat.type == "point"
props = feat.properties
props = feat.attributes
assert len(props) == 1
assert props["band1"] == "21.08714485168457"

Expand All @@ -41,13 +41,13 @@ def test_mvt_encoder():
layer = mvt.layers[0]
feat = layer.features[0]
assert feat.type == "polygon"
props = feat.properties
props = feat.attributes
assert props["band1"] == "21.08714485168457"

# Test band name
vt = encoder(tile, mask, band_names=["pop"])
mvt = vector_tile_base.VectorTile(vt)
props = mvt.layers[0].features[0].properties
props = mvt.layers[0].features[0].attributes
assert props["pop"] == "21.08714485168457"

# Test layer name
Expand Down

0 comments on commit 7e9eda6

Please sign in to comment.