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

Method test_query_string

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

Source from the content-addressed store, hash-verified

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)
1768 result = await _invoke_lambda(
1769 entrypoint_abs=ep_abs,
1770 entrypoint_rel=ep_rel,
1771 module_name=mod,
1772 event=_lambda_event("GET", "/search?q=test"),
1773 )
1774 self.assertEqual(result["statusCode"], 200)
1775 body = base64.b64decode(result["body"]).decode()
1776 self.assertEqual(body, "GET /search?q=test")
1777
1778 async def test_post_with_base64_body(self) -> None:
1779 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