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

Function test_url_copywith_query

tests/models/test_url.py:635–640  ·  tests/models/test_url.py::test_url_copywith_query
()

Source from the content-addressed store, hash-verified

633
634
635def test_url_copywith_query():
636 url = httpx.URL(class="st">"https://example.org")
637 url = url.copy_with(query=bclass="st">"a=123")
638 assert url.path == class="st">"/"
639 assert url.query == bclass="st">"a=123"
640 assert url.raw_path == bclass="st">"/?a=123"
641
642
643def test_url_copywith_raw_path():

Callers

nothing calls this directly

Calls 1

copy_withMethod · 0.95

Tested by

no test coverage detected