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

Method test_create_lambda_package

tests/test_core.py:91–102  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 assert resolve_color_default() is False
90
91 def test_create_lambda_package(self):
92 # mock the pkg_resources.WorkingSet() to include a known package in lambda_packages so that the code
93 # for zipping pre-compiled packages gets called
94 mock_installed_packages = {"psycopg": "3.1.17"}
95 with mock.patch(
96 "zappa.core.Zappa.get_installed_packages",
97 return_value=mock_installed_packages,
98 ):
99 z = Zappa(runtime="python3.13")
100 path = z.create_lambda_zip(handler_file=os.path.realpath(__file__))
101 self.assertTrue(os.path.isfile(path))
102 os.remove(path)
103
104 def test_get_manylinux_python39(self):
105 z = Zappa(runtime="python3.9")

Callers

nothing calls this directly

Calls 3

create_lambda_zipMethod · 0.95
ZappaClass · 0.90
removeMethod · 0.45

Tested by

no test coverage detected