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

Function test_create_todo

examples/api/tests/test_api.py:12–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11
12async def test_create_todo() -> None:
13 test_client = app.test_client()
14 response = await test_client.post("/todos/", json=TodoIn(task="Abc", due=None))
15 data = await response.get_json()
16 assert data == {"id": 1, "task": "Abc", "due": None}

Callers

nothing calls this directly

Calls 4

TodoInClass · 0.90
test_clientMethod · 0.45
postMethod · 0.45
get_jsonMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…