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