Home / Function/ test_static_folder_with_ending_slash() — flask Function Reference

test_static_folder_with_ending_slash() — flask Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_basic.py lines 1457–1465

def test_static_folder_with_ending_slash():
    app = flask.Flask(__name__, static_folder="static/")

    @app.route("/<path:path>")
    def catch_all(path):
        return path

    rv = app.test_client().get("/catch/all")
    assert rv.data == b"catch/all"

Subdomains

Defined In

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free