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