Home / Function/ test_options_work() — flask Function Reference

test_options_work() — flask Function Reference

Architecture documentation for the test_options_work() function in test_basic.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  e7cfcde9_0953_06bb_dc68_21a292b8c7ab["test_options_work()"]
  85bc4fb5_d1d7_a135_020d_69e052c12c0f["test_basic.py"]
  e7cfcde9_0953_06bb_dc68_21a292b8c7ab -->|defined in| 85bc4fb5_d1d7_a135_020d_69e052c12c0f
  6ea1611d_2801_3cb5_a5b9_5b6403cc0537["index()"]
  e7cfcde9_0953_06bb_dc68_21a292b8c7ab -->|calls| 6ea1611d_2801_3cb5_a5b9_5b6403cc0537
  style e7cfcde9_0953_06bb_dc68_21a292b8c7ab fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_basic.py lines 30–37

def test_options_work(app, client):
    @app.route("/", methods=["GET", "POST"])
    def index():
        return "Hello World"

    rv = client.open("/", method="OPTIONS")
    assert sorted(rv.allow) == ["GET", "HEAD", "OPTIONS", "POST"]
    assert rv.data == b""

Subdomains

Defined In

Calls

Frequently Asked Questions

What does test_options_work() do?
test_options_work() is a function in the flask codebase, defined in tests/test_basic.py.
Where is test_options_work() defined?
test_options_work() is defined in tests/test_basic.py at line 30.
What does test_options_work() call?
test_options_work() 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