MCPcopy Create free account
hub / github.com/pallets/flask / test_add

Function test_add

examples/javascript/tests/test_js_example.py:25–27  ·  view source on GitHub ↗
(client, a, b, result)

Source from the content-addressed store, hash-verified

23 ("a", "b", "result"), ((2, 3, 5), (2.5, 3, 5.5), (2, None, 2), (2, "b", 2))
24)
25def test_add(client, a, b, result):
26 response = client.post("/add", data={"a": a, "b": b})
27 assert response.get_json()["result"] == result

Callers

nothing calls this directly

Calls 1

postMethod · 0.45

Tested by

no test coverage detected