MCPcopy
hub / github.com/encode/starlette / test_subdomain_reverse_urls

Function test_subdomain_reverse_urls

tests/test_routing.py:512–518  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

510
511
512def test_subdomain_reverse_urls() -> None:
513 assert (
514 subdomain_router.url_path_for("subdomains", subdomain="foo", path="/homepage").make_absolute_url(
515 "https://whatever"
516 )
517 == "https://foo.example.org/homepage"
518 )
519
520
521async def echo_urls(request: Request) -> JSONResponse:

Callers

nothing calls this directly

Calls 2

make_absolute_urlMethod · 0.80
url_path_forMethod · 0.45

Tested by

no test coverage detected