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

Function test_static_url_empty_path_default

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

Source from the content-addressed store, hash-verified

1460
1461
1462def test_static_url_empty_path_default(app):
1463 app = flask.Flask(__name__, static_folder="")
1464 rv = app.test_client().open("/static/index.html", method="GET")
1465 assert rv.status_code == 200
1466 rv.close()
1467
1468
1469def test_static_folder_with_pathlib_path(app):

Callers

nothing calls this directly

Calls 3

test_clientMethod · 0.95
openMethod · 0.80
closeMethod · 0.80

Tested by

no test coverage detected