def test_exception_not_raised(mock_trial_results): """Mock trials results should have 1 survivor""" cli.exception_processing(5, mock_trial_results)
def test_exception_raised(mock_trial_results): """Mock trials results should have 1 survivor""" with pytest.raises(SurvivingMutantException): cli.exception_processing(1, mock_trial_results)