Exemplo n.º 1
0
def batch_client(aws_region):
    with mock_batch():
        yield boto3.client("batch", region_name=aws_region)
Exemplo n.º 2
0
def batch_client(aws_credentials):
    with mock_batch():
        yield boto3.client("batch", region_name="us-east-1")
Exemplo n.º 3
0
def batch(aws_credentials):
    """Get mocked API for AWS Batch"""
    with mock_batch():
        yield boto3.client('batch')
Exemplo n.º 4
0
def batch_client():
    mock = moto.mock_batch()
    mock.start()
    yield boto3.client("batch", region_name='us-east-1')
    mock.stop()