1717 write_all_mutants_to_file ,
1818 yield_mutants_for_module ,
1919 yield_mutants_for_node , run_forced_fail_test , Config , MutmutProgrammaticFailException ,
20+ CatchOutput ,
2021)
2122
2223
@@ -412,9 +413,9 @@ def bar():
412413# assert len(mutants) == 1
413414
414415
415- @patch ( 'mutmut.__main__. CatchOutput. dump_output' )
416- @patch ( 'mutmut.__main__. CatchOutput. stop' )
417- @patch ( 'mutmut.__main__. CatchOutput. start' )
416+ @patch . object ( CatchOutput , ' dump_output' )
417+ @patch . object ( CatchOutput , ' stop' )
418+ @patch . object ( CatchOutput , ' start' )
418419def test_run_forced_fail_test_with_failing_test (_start , _stop , _dump_output , capfd ):
419420 mutmut .config = _default_mutmut_config ()
420421 runner = _mocked_runner_run_forced_failed (return_value = 1 )
@@ -431,9 +432,9 @@ def test_run_forced_fail_test_with_failing_test(_start, _stop, _dump_output, cap
431432 assert os .environ ['MUTANT_UNDER_TEST' ] is ''
432433
433434
434- @patch ( 'mutmut.__main__. CatchOutput. dump_output' )
435- @patch ( 'mutmut.__main__. CatchOutput. stop' )
436- @patch ( 'mutmut.__main__. CatchOutput. start' )
435+ @patch . object ( CatchOutput , ' dump_output' )
436+ @patch . object ( CatchOutput , ' stop' )
437+ @patch . object ( CatchOutput , ' start' )
437438def test_run_forced_fail_test_with_mutmut_programmatic_fail_exception (_start , _stop , _dump_output , capfd ):
438439 mutmut .config = _default_mutmut_config ()
439440 runner = _mocked_runner_run_forced_failed (side_effect = MutmutProgrammaticFailException ())
@@ -446,9 +447,9 @@ def test_run_forced_fail_test_with_mutmut_programmatic_fail_exception(_start, _s
446447 assert os .environ ['MUTANT_UNDER_TEST' ] is ''
447448
448449
449- @patch ( 'mutmut.__main__. CatchOutput. dump_output' )
450- @patch ( 'mutmut.__main__. CatchOutput. stop' )
451- @patch ( 'mutmut.__main__. CatchOutput. start' )
450+ @patch . object ( CatchOutput , ' dump_output' )
451+ @patch . object ( CatchOutput , ' stop' )
452+ @patch . object ( CatchOutput , ' start' )
452453def test_run_forced_fail_test_with_all_tests_passing (_start , _stop , _dump_output , capfd ):
453454 mutmut .config = _default_mutmut_config ()
454455 runner = _mocked_runner_run_forced_failed (return_value = 0 )
0 commit comments