@@ -184,17 +184,17 @@ def test_update_failure_shows_snapshot_diff(
184184
185185
186186def  test_update_success_shows_snapshot_report (
187-     run_testcases , testcases_updated , plugin_args_fails_xdist 
187+     run_testcases , testcases_updated , plugin_args 
188188):
189189    testdir  =  run_testcases [1 ]
190190    testdir .makepyfile (** testcases_updated )
191-     result  =  testdir .runpytest ("-v" , "--snapshot-update" , * plugin_args_fails_xdist )
191+     result  =  testdir .runpytest ("-v" , "--snapshot-update" , * plugin_args )
192192    result .stdout .re_match_lines ((r"5 snapshots passed\. 5 snapshots updated\." ))
193193    assert  result .ret  ==  0 
194194
195195
196196def  test_update_targets_only_selected_parametrized_tests_for_update_dash_m (
197-     run_testcases , plugin_args_fails_xdist 
197+     run_testcases , plugin_args 
198198):
199199    updated_tests  =  {
200200        "test_used" : (
@@ -210,7 +210,7 @@ def test_used(snapshot, actual):
210210    testdir  =  run_testcases [1 ]
211211    testdir .makepyfile (** updated_tests )
212212    result  =  testdir .runpytest (
213-         "-v" , "--snapshot-update" , * plugin_args_fails_xdist , "-m" , "parametrize" 
213+         "-v" , "--snapshot-update" , * plugin_args , "-m" , "parametrize" 
214214    )
215215    result .stdout .re_match_lines (
216216        (
@@ -224,7 +224,7 @@ def test_used(snapshot, actual):
224224
225225
226226def  test_update_targets_only_selected_parametrized_tests_for_update_dash_k (
227-     run_testcases , plugin_args_fails_xdist 
227+     run_testcases , plugin_args 
228228):
229229    updated_tests  =  {
230230        "test_used" : (
@@ -240,7 +240,7 @@ def test_used(snapshot, actual):
240240    testdir  =  run_testcases [1 ]
241241    testdir .makepyfile (** updated_tests )
242242    result  =  testdir .runpytest (
243-         "-v" , "--snapshot-update" , * plugin_args_fails_xdist , "-k" , "test_used[2]" 
243+         "-v" , "--snapshot-update" , * plugin_args , "-k" , "test_used[2]" 
244244    )
245245    result .stdout .re_match_lines ((r"1 snapshot updated\." ))
246246    assert  "Deleted"  not  in result .stdout .str ()
@@ -250,7 +250,7 @@ def test_used(snapshot, actual):
250250
251251
252252def  test_update_targets_only_selected_parametrized_tests_for_removal_dash_k (
253-     run_testcases , plugin_args_fails_xdist 
253+     run_testcases , plugin_args 
254254):
255255    updated_tests  =  {
256256        "test_used" : (
@@ -266,7 +266,7 @@ def test_used(snapshot, actual):
266266    testdir  =  run_testcases [1 ]
267267    testdir .makepyfile (** updated_tests )
268268    result  =  testdir .runpytest (
269-         "-v" , "--snapshot-update" , * plugin_args_fails_xdist , "-k" , "test_used[" 
269+         "-v" , "--snapshot-update" , * plugin_args , "-k" , "test_used[" 
270270    )
271271    result .stdout .re_match_lines (
272272        (
@@ -279,9 +279,7 @@ def test_used(snapshot, actual):
279279    assert  Path (* snapshot_path , "test_updated_1.ambr" ).exists ()
280280
281281
282- def  test_update_targets_only_selected_class_tests_dash_k (
283-     testdir , plugin_args_fails_xdist 
284- ):
282+ def  test_update_targets_only_selected_class_tests_dash_k (testdir , plugin_args ):
285283    test_content  =  """ 
286284        import pytest 
287285
@@ -298,15 +296,13 @@ def test_case_2(self, snapshot):
298296    assert  Path (testdir .tmpdir , "__snapshots__" , "test_content.ambr" ).exists ()
299297
300298    result  =  testdir .runpytest (
301-         "test_content.py" , "-v" , * plugin_args_fails_xdist , "-k" , "test_case_2" 
299+         "test_content.py" , "-v" , * plugin_args , "-k" , "test_case_2" 
302300    )
303301    result .stdout .re_match_lines ((r"1 snapshot passed\." ))
304302    assert  "snaphot unused"  not  in result .stdout .str ()
305303
306304
307- def  test_update_targets_only_selected_module_tests_dash_k (
308-     testdir , plugin_args_fails_xdist 
309- ):
305+ def  test_update_targets_only_selected_module_tests_dash_k (testdir , plugin_args ):
310306    test_content  =  """ 
311307        import pytest 
312308
@@ -322,21 +318,19 @@ def test_case_2(snapshot):
322318    assert  Path (testdir .tmpdir , "__snapshots__" , "test_content.ambr" ).exists ()
323319
324320    result  =  testdir .runpytest (
325-         "test_content.py" , "-v" , * plugin_args_fails_xdist , "-k" , "test_case_2" 
321+         "test_content.py" , "-v" , * plugin_args , "-k" , "test_case_2" 
326322    )
327323    result .stdout .re_match_lines ((r"1 snapshot passed\." ))
328324    assert  "snaphot unused"  not  in result .stdout .str ()
329325
330326
331- def  test_update_targets_only_selected_module_tests_nodes (
332-     run_testcases , plugin_args_fails_xdist 
333- ):
327+ def  test_update_targets_only_selected_module_tests_nodes (run_testcases , plugin_args ):
334328    testdir  =  run_testcases [1 ]
335329    snapfile_empty  =  Path ("__snapshots__" , "empty_snapfile.ambr" )
336330    testdir .makefile (".ambr" , ** {str (snapfile_empty ): "" })
337331    testfile  =  Path (testdir .tmpdir , "test_used.py" )
338332    result  =  testdir .runpytest (
339-         "-v" , f"{ testfile }  , "--snapshot-update" , * plugin_args_fails_xdist 
333+         "-v" , f"{ testfile }  , "--snapshot-update" , * plugin_args 
340334    )
341335    result .stdout .re_match_lines ((r"3 snapshots passed\." ))
342336    assert  "unused"  not  in result .stdout .str ()
@@ -368,7 +362,7 @@ def test_update_targets_only_selected_module_tests_nodes_pyargs(
368362
369363
370364def  test_update_targets_only_selected_module_tests_file_for_update (
371-     run_testcases , plugin_args_fails_xdist 
365+     run_testcases , plugin_args 
372366):
373367    testdir  =  run_testcases [1 ]
374368    snapfile_empty  =  Path ("__snapshots__" , "empty_snapfile.ambr" )
@@ -384,9 +378,7 @@ def test_used(snapshot, actual):
384378            """ 
385379        )
386380    )
387-     result  =  testdir .runpytest (
388-         "-v" , "test_used.py" , "--snapshot-update" , * plugin_args_fails_xdist 
389-     )
381+     result  =  testdir .runpytest ("-v" , "test_used.py" , "--snapshot-update" , * plugin_args )
390382    result .stdout .re_match_lines (
391383        (
392384            r"3 snapshots passed\. 2 unused snapshots deleted\." ,
@@ -399,7 +391,7 @@ def test_used(snapshot, actual):
399391
400392
401393def  test_update_targets_only_selected_module_tests_file_for_removal (
402-     run_testcases , plugin_args_fails_xdist 
394+     run_testcases , plugin_args 
403395):
404396    testdir  =  run_testcases [1 ]
405397    testdir .makepyfile (
@@ -412,9 +404,7 @@ def test_used(snapshot):
412404    )
413405    snapfile_empty  =  Path ("__snapshots__" , "empty_snapfile.ambr" )
414406    testdir .makefile (".ambr" , ** {str (snapfile_empty ): "" })
415-     result  =  testdir .runpytest (
416-         "-v" , "test_used.py" , "--snapshot-update" , * plugin_args_fails_xdist 
417-     )
407+     result  =  testdir .runpytest ("-v" , "test_used.py" , "--snapshot-update" , * plugin_args )
418408    result .stdout .re_match_lines (
419409        (
420410            r"5 unused snapshots deleted\." ,
@@ -427,14 +417,12 @@ def test_used(snapshot):
427417    assert  not  Path ("__snapshots__" , "test_used.ambr" ).exists ()
428418
429419
430- def  test_update_removes_empty_snapshot_collection_only (
431-     run_testcases , plugin_args_fails_xdist 
432- ):
420+ def  test_update_removes_empty_snapshot_collection_only (run_testcases , plugin_args ):
433421    testdir  =  run_testcases [1 ]
434422    snapfile_empty  =  Path ("__snapshots__" , "empty_snapfile.ambr" )
435423    testdir .makefile (".ambr" , ** {str (snapfile_empty ): "" })
436424    assert  snapfile_empty .exists ()
437-     result  =  testdir .runpytest ("-v" , "--snapshot-update" , * plugin_args_fails_xdist )
425+     result  =  testdir .runpytest ("-v" , "--snapshot-update" , * plugin_args )
438426    result .stdout .re_match_lines (
439427        (
440428            r"10 snapshots passed\. 1 unused snapshot deleted\." ,
@@ -447,15 +435,13 @@ def test_update_removes_empty_snapshot_collection_only(
447435    assert  Path ("__snapshots__" , "test_used.ambr" ).exists ()
448436
449437
450- def  test_update_removes_hanging_snapshot_collection_file (
451-     run_testcases , plugin_args_fails_xdist 
452- ):
438+ def  test_update_removes_hanging_snapshot_collection_file (run_testcases , plugin_args ):
453439    testdir  =  run_testcases [1 ]
454440    snapfile_used  =  Path ("__snapshots__" , "test_used.ambr" )
455441    snapfile_hanging  =  Path ("__snapshots__" , "hanging_snapfile.abc" )
456442    testdir .makefile (".abc" , ** {str (snapfile_hanging ): "" })
457443    assert  snapfile_hanging .exists ()
458-     result  =  testdir .runpytest ("-v" , "--snapshot-update" , * plugin_args_fails_xdist )
444+     result  =  testdir .runpytest ("-v" , "--snapshot-update" , * plugin_args )
459445    result .stdout .re_match_lines (
460446        (
461447            r"10 snapshots passed\. 1 unused snapshot deleted\." ,
0 commit comments