MCPcopy Index your code
hub / github.com/encode/httpx / test_queryparam_merge

Function test_queryparam_merge

tests/models/test_queryparams.py:120–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118
119
120def test_queryparam_merge():
121 q = httpx.QueryParams("a=123")
122 q = q.merge({"b": "456"})
123 assert q == httpx.QueryParams("a=123&b=456")
124 q = q.merge({"a": "000", "c": "789"})
125 assert q == httpx.QueryParams("a=000&b=456&c=789")
126
127
128def test_queryparams_are_hashable():

Callers

nothing calls this directly

Calls 1

mergeMethod · 0.95

Tested by

no test coverage detected