MCPcopy
hub / github.com/pallets/flask / test_static_folder_with_ending_slash

Function test_static_folder_with_ending_slash

tests/test_basic.py:1478–1486  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1476
1477
1478def test_static_folder_with_ending_slash():
1479 app = flask.Flask(__name__, static_folder="static/")
1480
1481 @app.route("/<path:path>")
1482 def catch_all(path):
1483 return path
1484
1485 rv = app.test_client().get("/catch/all")
1486 assert rv.data == b"catch/all"
1487
1488
1489def test_static_route_with_host_matching():

Callers

nothing calls this directly

Calls 2

test_clientMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected