Skip to content

Commit

Permalink
fix: tests for removed failing rows
Browse files Browse the repository at this point in the history
  • Loading branch information
Gigaszi committed Nov 28, 2024
1 parent 81d44ed commit 9503a7d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mapswipe_workers/tests/unittests/test_process_mapillary.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,8 @@ def test_download_and_process_tile_success(self, mock_get, mock_vt2geojson):

row = {"x": 1, "y": 1, "z": 14}

result, failed = download_and_process_tile(row)
result = download_and_process_tile(row)

self.assertIsNone(failed)
self.assertIsInstance(result, pd.DataFrame)
self.assertEqual(len(result), 1)
self.assertEqual(result["geometry"][0].wkt, "POINT (0 0)")
Expand All @@ -188,10 +187,9 @@ def test_download_and_process_tile_failure(self, mock_get):
mock_get.return_value = mock_response

row = pd.Series({"x": 1, "y": 1, "z": self.level})
result, failed = download_and_process_tile(row)
result = download_and_process_tile(row)

self.assertIsNone(result)
self.assertIsNotNone(failed)

@patch("mapswipe_workers.utils.process_mapillary.download_and_process_tile")
def test_coordinate_download(self, mock_download_and_process_tile):
Expand Down

0 comments on commit 9503a7d

Please sign in to comment.