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

Function test_url_copywith_query

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

Source from the content-addressed store, hash-verified

633
634
635def test_url_copywith_query():
636 url = httpx.URL("https://example.org")
637 url = url.copy_with(query=b"a=123")
638 assert url.path == "/"
639 assert url.query == b"a=123"
640 assert url.raw_path == b"/?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