@@ -313,7 +313,8 @@ def test_push_pull_changes(mc):
313
313
# renamed file will result in removed + added file
314
314
assert next ((f for f in push_changes ["removed" ] if f ["path" ] == f_renamed ), None )
315
315
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
317
318
318
319
mc .push_project (project_dir )
319
320
@@ -2944,22 +2945,22 @@ def create_dummy_photos(dir_path, count=20, size_kb=5000):
2944
2945
False ,
2945
2946
"another_process" ,
2946
2947
), # 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
2953
2954
("inserted_1_A.gpkg" , "many_photos" , True , None ), # the upload of many photos does not block the other upload
2954
2955
]
2955
2956
2956
2957
2957
2958
@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 ):
2959
2960
"""
2960
2961
Test two clients pushing at the same time
2961
2962
"""
2962
- test_project_name = "test_exclusive_upload "
2963
+ test_project_name = "test_sync_project "
2963
2964
project_dir1 = os .path .join (TMP_DIR , test_project_name + "_1" )
2964
2965
project_dir2 = os .path .join (TMP_DIR , test_project_name + "_2" )
2965
2966
0 commit comments