MCPcopy Create free account
hub / github.com/encode/starlette / test_subdomain_reverse_urls

Function test_subdomain_reverse_urls

tests/test_routing.py:570–576  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

568
569
570def test_subdomain_reverse_urls() -> None:
571 assert (
572 subdomain_router.url_path_for("subdomains", subdomain="foo", path="/homepage").make_absolute_url(
573 "https://whatever"
574 )
575 == "https://foo.example.org/homepage"
576 )
577
578
579async 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