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

Function test_static_url_empty_path

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

Source from the content-addressed store, hash-verified

1453
1454
1455def test_static_url_empty_path(app):
1456 app = flask.Flask(__name__, static_folder="", static_url_path="")
1457 rv = app.test_client().open("/static/index.html", method="GET")
1458 assert rv.status_code == 200
1459 rv.close()
1460
1461
1462def 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