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

Function test_static_folder_with_pathlib_path

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

Source from the content-addressed store, hash-verified

1439
1440
1441def test_static_folder_with_pathlib_path(app):
1442 from pathlib import Path
1443
1444 app = flask.Flask(__name__, static_folder=Path("static"))
1445 rv = app.test_client().open("/static/index.html", method="GET")
1446 assert rv.status_code == 200
1447 rv.close()
1448
1449
1450def test_static_folder_with_ending_slash():

Callers

nothing calls this directly

Calls 3

test_clientMethod · 0.95
openMethod · 0.80
closeMethod · 0.80

Tested by

no test coverage detected