MCPcopy Create free account
hub / github.com/vercel/vercel / test_get_request

Method test_get_request

python/vercel-runtime/tests/test_runtime.py:1797–1807  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 4

_make_entrypointFunction · 0.85
_invoke_lambdaFunction · 0.85
_lambda_eventFunction · 0.85
decodeMethod · 0.80

Tested by

no test coverage detected