MCPcopy Create free account
hub / github.com/pallets/quart / test_json

Function test_json

tests/test_basic.py:114–118  ·  view source on GitHub ↗
(app: Quart)

Source from the content-addressed store, hash-verified

112
113
114async def test_json(app: Quart) -> None:
115 test_client = app.test_client()
116 response = await test_client.post("/json/", json={"value": "json"})
117 assert response.status_code == 200
118 assert b'{"value":"json"}\n' == (await response.get_data())
119
120
121async def test_implicit_json(app: Quart) -> None:

Callers

nothing calls this directly

Calls 3

test_clientMethod · 0.45
postMethod · 0.45
get_dataMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…