Skip to content

Commit

Permalink
(unit-test) test_predict: add dict assert and features
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Mar 25, 2024
1 parent a0d1132 commit ba31441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def tearDown(self):
def test_predict(self):
zoom_level = 20
predictions = predict(BBOX, self.model_path, zoom_level, TMS_URL)
self.assertIsInstance(predictions, list)
self.assertTrue(len(predictions) > 0)
self.assertIsInstance(predictions, dict)
self.assertTrue(len(predictions["features"]) > 0)


if __name__ == "__main__":
Expand Down

0 comments on commit ba31441

Please sign in to comment.