Skip to content

Commit

Permalink
updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wouellette authored and wouellette committed May 17, 2019
1 parent c5dfb32 commit c559fcf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/validation/passing.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"country": "portugal",
"country": ["portugal"],
"bounding_box": [0, 0, 1, 1],
"zoom": 16,
"classes": [
Expand Down
Binary file removed test/tiles/4686-6267-14.jpeg
Binary file not shown.
2 changes: 1 addition & 1 deletion test/unit/test_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_mapper(self):
ml_type = 'classification'
tile, label = _mapper(x, y, z, test_tile_data, dict(ml_type=ml_type, classes=classes))
self.assertEqual(tile, ('{!s}-{!s}-{!s}'.format(x, y, z)))
self.assertTrue(np.array_equal(label, np.array([0, 1], dtype=np.int)))
self.assertTrue(np.array_equal(label, np.array([0, 169], dtype=np.int)))

# for object-detection we return the bounding box and class
ml_type = 'object-detection'
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ def test_bounds(self):


if __name__ == '__main__':
unittest.main()
unittest.main()

0 comments on commit c559fcf

Please sign in to comment.