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