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

Function index

tests/test_basic.py:32–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30def test_options_work(app, client):
31 @app.route("/", methods=["GET", "POST"])
32 def index():
33 return "Hello World"
34
35 rv = client.open("/", method="OPTIONS")
36 assert sorted(rv.allow) == ["GET", "HEAD", "OPTIONS", "POST"]

Callers

nothing calls this directly

Calls 2

MyExceptionClass · 0.85
url_forMethod · 0.80

Tested by

no test coverage detected