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

Function test_multi_route_rules

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

Source from the content-addressed store, hash-verified

1843
1844
1845def test_multi_route_rules(app, client):
1846 @app.route("/")
1847 @app.route("/<test>/")
1848 def index(test="a"):
1849 return test
1850
1851 rv = client.open("/")
1852 assert rv.data == b"a"
1853 rv = client.open("/b/")
1854 assert rv.data == b"b"
1855
1856
1857def test_multi_route_class_views(app, client):

Callers

nothing calls this directly

Calls 1

openMethod · 0.80

Tested by

no test coverage detected