Skip to content

Commit 455afdc

Browse files
committed
Fix merge-develop tests
1 parent db28877 commit 455afdc

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

superannotate/db/projects.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ def upload_video_to_project(
382382
annotation_status=annotation_status,
383383
image_quality_in_editor=image_quality_in_editor
384384
)
385+
385386
filenames_base = [Path(f).name for f in filenames[0]]
386387
return filenames_base
387388

superannotate/db/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,8 @@ def _upload_images(
397397
thread.join()
398398
finish_event.set()
399399
tqdm_thread.join()
400-
not_uploaded = [str(f) for f in not_upload for not_upload in couldnt_upload]
401-
uploaded = [str(f) for f in upload for upload in uploaded]
400+
not_uploaded = [str(f) for s in couldnt_upload for f in s]
401+
uploaded = [str(f) for s in uploaded for f in s]
402402
not_uploaded += images_to_skip
403403

404404
return (uploaded, not_uploaded, duplicate_images_names)

tests/test_attach_image_urls.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,5 @@ def test_attach_image_urls():
2020
)
2121

2222
assert len(uploaded) == 7
23-
assert len(could_not_upload) == 0
24-
assert len(existing_images) == 1
25-
26-
uploaded, could_not_upload, existing_images = sa.attach_image_urls_to_project(
27-
project, PATH_TO_URLS
28-
)
29-
30-
assert len(uploaded) == 2
31-
assert len(could_not_upload) == 0
32-
assert len(existing_images) == 6
23+
assert len(could_not_upload) == 1
24+
assert len(existing_images) == 0

0 commit comments

Comments
 (0)