File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -607,3 +607,29 @@ def test_google_drive_backend(mc):
607607 # files in mergin project still exist (copy mode)
608608 assert os .path .exists (os .path .join (work_project_dir , "img1.png" ))
609609 assert os .path .exists (os .path .join (work_project_dir , "images" , "img2.jpg" ))
610+
611+ # test for moving files
612+ cleanup (mc , full_project_name , [work_project_dir ])
613+ prepare_mergin_project (mc , full_project_name )
614+
615+ # patch config to fit testing purposes
616+ config .update (
617+ {
618+ "OPERATION_MODE" : "move" ,
619+ }
620+ )
621+
622+ google_drive_delete_folder (GoogleDriveDriver (config ), GOOGLE_DRIVE_FOLDER )
623+
624+ main ()
625+
626+ google_drive_files = google_drive_list_files_in_folder (
627+ GoogleDriveDriver (config ), GOOGLE_DRIVE_FOLDER
628+ )
629+
630+ assert "img1.png" in google_drive_files
631+ assert "images/img2.jpg" in google_drive_files
632+
633+ # files in mergin project still exist (copy mode)
634+ assert os .path .exists (os .path .join (work_project_dir , "img1.png" )) is False
635+ assert os .path .exists (os .path .join (work_project_dir , "images" , "img2.jpg" )) is False
You can’t perform that action at this time.
0 commit comments