Home / Function/ test_static_url_path() — flask Function Reference

test_static_url_path() — flask Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  cfe6f83e_64fc_b420_8aa4_d4e83223341a["test_static_url_path()"]
  85bc4fb5_d1d7_a135_020d_69e052c12c0f["test_basic.py"]
  cfe6f83e_64fc_b420_8aa4_d4e83223341a -->|defined in| 85bc4fb5_d1d7_a135_020d_69e052c12c0f
  style cfe6f83e_64fc_b420_8aa4_d4e83223341a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_basic.py lines 1412–1420

def test_static_url_path():
    app = flask.Flask(__name__, static_url_path="/foo")
    app.testing = True
    rv = app.test_client().get("/foo/index.html")
    assert rv.status_code == 200
    rv.close()

    with app.test_request_context():
        assert flask.url_for("static", filename="index.html") == "/foo/index.html"

Subdomains

Defined In

Frequently Asked Questions

What does test_static_url_path() do?
test_static_url_path() is a function in the flask codebase, defined in tests/test_basic.py.
Where is test_static_url_path() defined?
test_static_url_path() is defined in tests/test_basic.py at line 1412.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free