MCPcopy Index your code
hub / github.com/pallets/quart / test_sync_request_context

Function test_sync_request_context

tests/test_sync.py:33–38  ·  view source on GitHub ↗
(app: Quart)

Source from the content-addressed store, hash-verified

31
32
33async def test_sync_request_context(app: Quart) -> None:
34 test_client = app.test_client()
35 response = await test_client.get("/")
36 assert b"GET" in (await response.get_data())
37 response = await test_client.post("/")
38 assert b"POST" in (await response.get_data())
39
40
41async def test_sync_generator(app: Quart) -> None:

Callers

nothing calls this directly

Calls 4

test_clientMethod · 0.45
getMethod · 0.45
get_dataMethod · 0.45
postMethod · 0.45

Tested by

no test coverage detected