Skip to content

Commit c559fcf

Browse files
wouellettewouellette
wouellette
authored and
wouellette
committed
updated unit tests
1 parent c5dfb32 commit c559fcf

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

test/fixtures/validation/passing.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"country": "portugal",
2+
"country": ["portugal"],
33
"bounding_box": [0, 0, 1, 1],
44
"zoom": 16,
55
"classes": [

test/tiles/4686-6267-14.jpeg

-36.1 KB
Binary file not shown.

test/unit/test_label.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_mapper(self):
1717
ml_type = 'classification'
1818
tile, label = _mapper(x, y, z, test_tile_data, dict(ml_type=ml_type, classes=classes))
1919
self.assertEqual(tile, ('{!s}-{!s}-{!s}'.format(x, y, z)))
20-
self.assertTrue(np.array_equal(label, np.array([0, 1], dtype=np.int)))
20+
self.assertTrue(np.array_equal(label, np.array([0, 169], dtype=np.int)))
2121

2222
# for object-detection we return the bounding box and class
2323
ml_type = 'object-detection'

test/unit/test_validate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ def test_bounds(self):
7878

7979

8080
if __name__ == '__main__':
81-
unittest.main()
81+
unittest.main()

0 commit comments

Comments
 (0)