MCPcopy Create free account
hub / github.com/pallets/flask / test_static_url_empty_path

Function test_static_url_empty_path

tests/test_basic.py:1427–1431  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

1425
1426
1427def test_static_url_empty_path(app):
1428 app = flask.Flask(__name__, static_folder="", static_url_path="")
1429 rv = app.test_client().open("/static/index.html", method="GET")
1430 assert rv.status_code == 200
1431 rv.close()
1432
1433
1434def test_static_url_empty_path_default(app):

Callers

nothing calls this directly

Calls 3

test_clientMethod · 0.95
openMethod · 0.80
closeMethod · 0.80

Tested by

no test coverage detected