Skip to content

Commit 8593a3c

Browse files
committed
fix: fixed tests and removed return of failed rows for download from mapillary
1 parent df17d3c commit 8593a3c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mapswipe_workers/mapswipe_workers/utils/process_mapillary.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ def download_and_process_tile(row, attempt_limit=3):
8585
data = pd.DataFrame(data)
8686

8787
if not data.empty:
88-
return data, None
88+
return data
8989
except Exception as e:
9090
print(f"An exception occurred while requesting a tile: {e}")
9191
attempt += 1
9292

9393
print(f"A tile could not be downloaded: {row}")
94-
return None, row
94+
return None
9595

9696

9797
def coordinate_download(

mapswipe_workers/tests/unittests/test_project_type_street.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def setUp(self) -> None:
3434
df = pd.read_csv(file)
3535
df['geometry'] = df['geometry'].apply(wkt.loads)
3636

37-
mock_get.return_value = (df, None)
37+
mock_get.return_value = df
3838
self.project = StreetProject(project_draft)
3939

4040
def test_init(self):

0 commit comments

Comments
 (0)