def test_it_ignores_memory_limit_if_none(self): subject = AWSLambda(function_arn="the_arn", memory_limit_mb=None, execution_env="AWS_Lambda_python3.8") assert subject.serialize_to_map() == { "computeType": "aws_lambda", "functionArn": "the_arn", "executionEnv": "AWS_Lambda_python3.8" }
def test_it_ignores_execution_env_if_none(self): subject = AWSLambda(function_arn="the_arn", memory_limit_mb=512, execution_env=None) assert subject.serialize_to_map() == { "computeType": "aws_lambda", "functionArn": "the_arn", "memoryLimitInMB": 512 }
def test_it_returns_a_map(self): subject = AWSLambda(function_arn="the_arn", memory_limit_mb=512, execution_env="AWS_Lambda_python3.8") assert subject.serialize_to_map() == { "computeType": "aws_lambda", "functionArn": "the_arn", "memoryLimitInMB": 512, "executionEnv": "AWS_Lambda_python3.8" }