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

Method test_get_request

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

Source from the content-addressed store, hash-verified

1752 """Legacy Lambda mode with WSGI app."""
1753
1754 async def test_get_request(self) -> None:
1755 ep_abs, ep_rel, mod = _make_entrypoint("wsgi_app.py", self.tmp_path)
1756 result = await _invoke_lambda(
1757 entrypoint_abs=ep_abs,
1758 entrypoint_rel=ep_rel,
1759 module_name=mod,
1760 event=_lambda_event("GET", "/hello"),
1761 )
1762 self.assertEqual(result["statusCode"], 200)
1763 body = base64.b64decode(result["body"]).decode()
1764 self.assertEqual(body, "GET /hello")
1765
1766 async def test_query_string(self) -> None:
1767 ep_abs, ep_rel, mod = _make_entrypoint("wsgi_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