MCPcopy
hub / github.com/pallets/werkzeug / test_build_append_unknown_multidict

Function test_build_append_unknown_multidict

tests/test_routing.py:958–962  ·  view source on GitHub ↗
(value, expect)

Source from the content-addressed store, hash-verified

956 ],
957)
958def test_build_append_unknown_multidict(value, expect):
959 map = r.Map([r.Rule("/", endpoint="a")])
960 adapter = map.bind("localhost")
961 assert adapter.build("a", MultiDict({"v": value})) == f"/{expect}"
962 assert adapter.build("a", MultiDict({"v": value}), append_unknown=False) == "/"
963
964
965def test_build_drop_none():

Callers

nothing calls this directly

Calls 3

bindMethod · 0.95
MultiDictClass · 0.90
buildMethod · 0.45

Tested by

no test coverage detected