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

Function test_blueprint_prefix_slash

tests/test_blueprints.py:120–128  ·  view source on GitHub ↗
(app, client, prefix, rule, url)

Source from the content-addressed store, hash-verified

118 ),
119)
120def test_blueprint_prefix_slash(app, client, prefix, rule, url):
121 bp = flask.Blueprint("test", __name__, url_prefix=prefix)
122
123 @bp.route(rule)
124 def index():
125 return "", 204
126
127 app.register_blueprint(bp)
128 assert client.get(url).status_code == 204
129
130
131def test_blueprint_url_defaults(app, client):

Callers

nothing calls this directly

Calls 2

register_blueprintMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected