MCPcopy
hub / github.com/encode/httpx / test_url_copywith_urlencoded_path

Function test_url_copywith_urlencoded_path

tests/models/test_url.py:627–632  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

625
626
627def test_url_copywith_urlencoded_path():
628 url = httpx.URL("https://example.org")
629 url = url.copy_with(path="/path to somewhere")
630 assert url.path == "/path to somewhere"
631 assert url.query == b""
632 assert url.raw_path == b"/path%20to%20somewhere"
633
634
635def test_url_copywith_query():

Callers

nothing calls this directly

Calls 1

copy_withMethod · 0.95

Tested by

no test coverage detected