@when(u'paasta stop is run against the repo')
def step_paasta_stop_when(context):
    fake_args = mock.MagicMock(
        clusters='test_cluster',
        instance='test_instance',
        soa_dir='fake_soa_configs',
        service='fake_deployments_json_service',
    )
    context.force_bounce_timestamp = format_timestamp(datetime.utcnow())
    with contextlib.nested(
        mock.patch('paasta_tools.cli.cmds.start_stop_restart.utils.get_git_url', autospec=True,
                   return_value=context.test_git_repo_dir),
        mock.patch('paasta_tools.utils.format_timestamp', autospec=True,
                   return_value=context.force_bounce_timestamp),
    ) as (
        mock_get_git_url,
        mock_get_timestamp,
    ):
        try:
            paasta_stop(fake_args)
        except __HOLE__:
            pass
dataset/ETHPy150Open Yelp/paasta/general_itests/steps/deployments_json_steps.py/step_paasta_stop_when