MCPcopy Index your code
hub / github.com/zappa/Zappa / test_create_lambda_function_docker

Method test_create_lambda_function_docker

tests/test_placebo.py:138–157  ·  view source on GitHub ↗
(self, session)

Source from the content-addressed store, hash-verified

136
137 @placebo_session
138 def test_create_lambda_function_docker(self, session):
139 bucket_name = "lmbda"
140 docker_image_uri = "docker_image_uri"
141
142 z = Zappa(session)
143 z.aws_region = "us-east-1"
144 z.load_credentials(session)
145 z.credentials_arn = "arn:aws:iam::12345:role/ZappaLambdaExecution"
146
147 arn = z.create_lambda_function(
148 bucket=bucket_name,
149 docker_image_uri=docker_image_uri,
150 function_name="test_lmbda_function55",
151 )
152
153 arn = z.update_lambda_function(
154 bucket=bucket_name,
155 docker_image_uri=docker_image_uri,
156 function_name="test_lmbda_function55",
157 )
158
159 @placebo_session
160 def test_rollback_lambda_function_version(self, session):

Callers

nothing calls this directly

Calls 4

load_credentialsMethod · 0.95
ZappaClass · 0.90

Tested by

no test coverage detected