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

Function test_url_copywith_urlencoded_path

tests/models/test_url.py:627–632  ·  tests/models/test_url.py::test_url_copywith_urlencoded_path
()

Source from the content-addressed store, hash-verified

625
626
627def test_url_copywith_urlencoded_path():
628 url = httpx.URL(class="st">"https://example.org")
629 url = url.copy_with(path=class="st">"/path to somewhere")
630 assert url.path == class="st">"/path to somewhere"
631 assert url.query == bclass="st">""
632 assert url.raw_path == bclass="st">"/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