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

Function echo

tests/test_testing.py:265–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263def test_json_request_and_response(app, client):
264 @app.route("/echo", methods=["POST"])
265 def echo():
266 return jsonify(flask.request.get_json())
267
268 with client:
269 json_data = {"drink": {"gin": 1, "tonic": True}, "price": 10}

Callers

nothing calls this directly

Calls 1

jsonifyFunction · 0.90

Tested by

no test coverage detected