@@ -418,16 +418,14 @@ def test_wp_add_wp_delete_wp_duplicate_add_feature():
418418 "trees" ,
419419 "POINT(6 16)" ,
420420 {"tree_species_id" : 1 , "farm_id" : 4 },
421- fid = 1111111
421+ fid = 1111111 ,
422422 )
423423 # run work packaging
424424 wp_config = load_config_from_yaml (config_file )
425425 make_work_packages (tmp_dir_2 .name , wp_config )
426426 tmp_dir_3 = _prepare_next_run_work_packages (tmp_dir_2 )
427427 # modify 'Kyle' WP by removing 'trees' feature with a FID '1111111'
428- open_layer_and_delete_feature (
429- os .path .join (tmp_dir_3 .name , "input" , "Kyle.gpkg" ), "trees" , 1111111
430- )
428+ open_layer_and_delete_feature (os .path .join (tmp_dir_3 .name , "input" , "Kyle.gpkg" ), "trees" , 1111111 )
431429 # run work packaging 2nd time
432430 make_work_packages (tmp_dir_3 .name , wp_config )
433431 tmp_dir_4 = _prepare_next_run_work_packages (tmp_dir_3 )
@@ -437,7 +435,7 @@ def test_wp_add_wp_delete_wp_duplicate_add_feature():
437435 "trees" ,
438436 "POINT(6 16)" ,
439437 {"tree_species_id" : 1 , "farm_id" : 4 },
440- fid = 1111111
438+ fid = 1111111 ,
441439 )
442440 # run work packaging 3rd time
443441 make_work_packages (tmp_dir_4 .name , wp_config )
@@ -448,6 +446,7 @@ def test_wp_add_wp_delete_wp_duplicate_add_feature():
448446 assert "Kyle_duplicate.gpkg" in final_output_files
449447 assert "master.gpkg" in final_output_files
450448
449+
451450# TODO: more test cases
452451# - delete_master_update_wp # one row deleted in master while it is updated in WP
453452# - update_master_delete_wp # one row updated in master while it is deleted in WP
0 commit comments