Skip to content

Commit 43f140b

Browse files
Davit AvagyanDavit Avagyan
authored andcommitted
Move function fix, test fix
1 parent c31e04c commit 43f140b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

superannotate/db/project_images.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,9 @@ def move_images(
329329
)
330330
if image_names is None:
331331
image_names = search_images((source_project, source_project_folder))
332-
_copy_images(
333-
(source_project, source_project_folder),
334-
(destination_project, destination_project_folder), image_names,
335-
include_annotations, copy_annotation_status, copy_pin
336-
)
332+
copy_images((source_project, source_project_folder), image_names,
333+
(destination_project, destination_project_folder),
334+
include_annotations, copy_annotation_status, copy_pin)
337335
delete_images((source_project, source_project_folder), image_names)
338336
logger.info(
339337
"Moved images %s from project %s to project %s", image_names,

tests/test_folders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def test_copy_images(tmpdir):
348348
num_images = sa.get_project_image_count(project2)
349349
assert num_images == 4
350350

351-
assert res == 2
351+
assert len(res) == 2
352352

353353
sa.copy_images(
354354
project, ["example_image_2.jpg", "example_image_3.jpg"],

0 commit comments

Comments
 (0)