@when(u'paasta mark-for-deployments is run against the repo')
def step_paasta_mark_for_deployments_when(context):
    fake_args = mock.MagicMock(
        deploy_group='test_cluster.test_instance',
        service='fake_deployments_json_service',
        git_url=context.test_git_repo_dir,
        commit=context.expected_commit
    )
    context.force_bounce_timestamp = format_timestamp(datetime.utcnow())
    with contextlib.nested(
        mock.patch('paasta_tools.utils.format_timestamp', autosepc=True,
                   return_value=context.force_bounce_timestamp),
        mock.patch('paasta_tools.cli.cmds.mark_for_deployment.validate_service_name', autospec=True,
                   return_value=True),
    ) as (
        mock_format_timestamp,
        mock_validate_service_name,
    ):
        try:
            paasta_mark_for_deployment(fake_args)
        except __HOLE__:
            pass
dataset/ETHPy150Open Yelp/paasta/general_itests/steps/deployments_json_steps.py/step_paasta_mark_for_deployments_when