MCPcopy Create free account
hub / github.com/pallets/quart / test_url_defaults

Function test_url_defaults

tests/test_basic.py:149–155  ·  view source on GitHub ↗
(app: Quart)

Source from the content-addressed store, hash-verified

147
148
149async def test_url_defaults(app: Quart) -> None:
150 @app.url_defaults
151 def defaults(_: str, values: dict) -> None:
152 values["value"] = "hello"
153
154 async with app.test_request_context("/"):
155 assert url_for("param") == "/param/hello"
156
157
158async def test_not_found_error(app: Quart) -> None:

Callers

nothing calls this directly

Calls 2

url_forFunction · 0.90
test_request_contextMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…