(self)
| 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") |
nothing calls this directly
no test coverage detected