@@ -313,7 +313,8 @@ def test_push_pull_changes(mc):
313313 # renamed file will result in removed + added file
314314 assert next ((f for f in push_changes ["removed" ] if f ["path" ] == f_renamed ), None )
315315 assert next ((f for f in push_changes ["added" ] if f ["path" ] == "renamed.txt" ), None )
316- assert not pull_changes ["renamed" ] # not supported
316+ assert not pull_changes .get ("renamed" ) # not supported
317+ assert not push_changes .get ("renamed" ) # not supported
317318
318319 mc .push_project (project_dir )
319320
@@ -2944,22 +2945,22 @@ def create_dummy_photos(dir_path, count=20, size_kb=5000):
29442945 False ,
29452946 "another_process" ,
29462947 ), # both pushes are exclusive, the latter one is refused
2947- (
2948- "inserted_1_A.gpkg" ,
2949- "test.txt" ,
2950- False ,
2951- "version_conflict" ,
2952- ), # small files pushed at the same time might result in version conflict due to race condition
2948+ # (
2949+ # "inserted_1_A.gpkg",
2950+ # "test.txt",
2951+ # False,
2952+ # "version_conflict",
2953+ # ), # small files pushed at the same time might result in version conflict due to race condition
29532954 ("inserted_1_A.gpkg" , "many_photos" , True , None ), # the upload of many photos does not block the other upload
29542955]
29552956
29562957
29572958@pytest .mark .parametrize ("file1,file2,success,fail_reason" , files_to_push )
2958- def test_exclusive_upload (mc , mc2 , file1 , file2 , success , fail_reason ):
2959+ def test_sync_project (mc , mc2 , file1 , file2 , success , fail_reason ):
29592960 """
29602961 Test two clients pushing at the same time
29612962 """
2962- test_project_name = "test_exclusive_upload "
2963+ test_project_name = "test_sync_project "
29632964 project_dir1 = os .path .join (TMP_DIR , test_project_name + "_1" )
29642965 project_dir2 = os .path .join (TMP_DIR , test_project_name + "_2" )
29652966
0 commit comments