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

Function test_long_build

tests/test_routing.py:325–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

323
324
325def test_long_build():
326 long_args = {f"v{x}": x for x in range(10000)}
327 map = r.Map(
328 [
329 r.Rule(
330 "".join(f"/<{k}>" for k in long_args.keys()),
331 endpoint="bleep",
332 build_only=True,
333 )
334 ]
335 )
336 adapter = map.bind("localhost", "/")
337 url = f"{adapter.build('bleep', long_args)}/"
338 for v in long_args.values():
339 assert f"/{v}" in url
340
341
342def test_defaults():

Callers

nothing calls this directly

Calls 4

bindMethod · 0.95
keysMethod · 0.45
buildMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected