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

Method test_create_lambda_function_local

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

Source from the content-addressed store, hash-verified

113
114 @placebo_session
115 def test_create_lambda_function_local(self, session):
116 bucket_name = "lmbda"
117 local_file = "Spheres-dev-1454694878.zip"
118
119 z = Zappa(session)
120 z.aws_region = "us-east-1"
121 z.load_credentials(session)
122 z.credentials_arn = "arn:aws:iam::12345:role/ZappaLambdaExecution"
123
124 arn = z.create_lambda_function(
125 bucket=bucket_name,
126 local_zip=local_file,
127 function_name="test_lmbda_function55",
128 handler="runme.lambda_handler",
129 )
130
131 arn = z.update_lambda_function(
132 bucket=bucket_name,
133 local_zip=local_file,
134 function_name="test_lmbda_function55",
135 )
136
137 @placebo_session
138 def test_create_lambda_function_docker(self, session):

Callers

nothing calls this directly

Calls 4

load_credentialsMethod · 0.95
ZappaClass · 0.90

Tested by

no test coverage detected