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

Function test_static_folder_with_pathlib_path

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

Source from the content-addressed store, hash-verified

1467
1468
1469def test_static_folder_with_pathlib_path(app):
1470 from pathlib import Path
1471
1472 app = flask.Flask(__name__, static_folder=Path("static"))
1473 rv = app.test_client().open("/static/index.html", method="GET")
1474 assert rv.status_code == 200
1475 rv.close()
1476
1477
1478def 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