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

Function test_url_merge_params_manipulation

tests/models/test_url.py:708–713  ·  view source on GitHub ↗

Some basic URL query parameter manipulation.

()

Source from the content-addressed store, hash-verified

706
707
708def test_url_merge_params_manipulation():
709 """
710 Some basic URL query parameter manipulation.
711 """
712 url = httpx.URL("https://example.org:123/?a=123")
713 assert url.copy_merge_params({"b": "456"}) == "https://example.org:123/?a=123&b=456"
714
715
716# Tests for IDNA hostname support.

Callers

nothing calls this directly

Calls 1

copy_merge_paramsMethod · 0.95

Tested by

no test coverage detected