(self)
| 1795 | """Legacy Lambda mode with ASGI app.""" |
| 1796 | |
| 1797 | async def test_get_request(self) -> None: |
| 1798 | ep_abs, ep_rel, mod = _make_entrypoint("asgi_app.py", self.tmp_path) |
| 1799 | result = await _invoke_lambda( |
| 1800 | entrypoint_abs=ep_abs, |
| 1801 | entrypoint_rel=ep_rel, |
| 1802 | module_name=mod, |
| 1803 | event=_lambda_event("GET", "/hello"), |
| 1804 | ) |
| 1805 | self.assertEqual(result["statusCode"], 200) |
| 1806 | body = base64.b64decode(result["body"]).decode() |
| 1807 | self.assertEqual(body, "GET /hello") |
| 1808 | |
| 1809 | async def test_base64_body(self) -> None: |
| 1810 | ep_abs, ep_rel, mod = _make_entrypoint("asgi_app.py", self.tmp_path) |
nothing calls this directly
no test coverage detected