test_options_on_multiple_rules() — flask Function Reference
Architecture documentation for the test_options_on_multiple_rules() function in test_basic.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 2db3db7a_4476_605b_86be_ea1f6a060c9a["test_options_on_multiple_rules()"] 85bc4fb5_d1d7_a135_020d_69e052c12c0f["test_basic.py"] 2db3db7a_4476_605b_86be_ea1f6a060c9a -->|defined in| 85bc4fb5_d1d7_a135_020d_69e052c12c0f 6ea1611d_2801_3cb5_a5b9_5b6403cc0537["index()"] 2db3db7a_4476_605b_86be_ea1f6a060c9a -->|calls| 6ea1611d_2801_3cb5_a5b9_5b6403cc0537 style 2db3db7a_4476_605b_86be_ea1f6a060c9a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_basic.py lines 40–50
def test_options_on_multiple_rules(app, client):
@app.route("/", methods=["GET", "POST"])
def index():
return "Hello World"
@app.route("/", methods=["PUT"])
def index_put():
return "Aha!"
rv = client.open("/", method="OPTIONS")
assert sorted(rv.allow) == ["GET", "HEAD", "OPTIONS", "POST", "PUT"]
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_options_on_multiple_rules() do?
test_options_on_multiple_rules() is a function in the flask codebase, defined in tests/test_basic.py.
Where is test_options_on_multiple_rules() defined?
test_options_on_multiple_rules() is defined in tests/test_basic.py at line 40.
What does test_options_on_multiple_rules() call?
test_options_on_multiple_rules() calls 1 function(s): index.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free