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

Function test_adapter_url_parameter_sorting

tests/test_routing.py:528–536  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

526
527
528def test_adapter_url_parameter_sorting():
529 map = r.Map(
530 [r.Rule("/", endpoint="index")], sort_parameters=True, sort_key=lambda x: x[1]
531 )
532 adapter = map.bind("localhost", "/")
533 assert (
534 adapter.build("index", {"x": 20, "y": 10, "z": 30}, force_external=True)
535 == "http://localhost/?y=10&x=20&z=30"
536 )
537
538
539def test_request_direct_charset_bug():

Callers

nothing calls this directly

Calls 2

bindMethod · 0.95
buildMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…