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

Function test_multi_route_rules

tests/test_basic.py:1817–1826  ·  view source on GitHub ↗
(app, client)

Source from the content-addressed store, hash-verified

1815
1816
1817def test_multi_route_rules(app, client):
1818 @app.route("/")
1819 @app.route("/<test>/")
1820 def index(test="a"):
1821 return test
1822
1823 rv = client.open("/")
1824 assert rv.data == b"a"
1825 rv = client.open("/b/")
1826 assert rv.data == b"b"
1827
1828
1829def test_multi_route_class_views(app, client):

Callers

nothing calls this directly

Calls 1

openMethod · 0.80

Tested by

no test coverage detected