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

Function test_queryparam_merge

tests/models/test_queryparams.py:120–125  ·  tests/models/test_queryparams.py::test_queryparam_merge
()

Source from the content-addressed store, hash-verified

118
119
120def test_queryparam_merge():
121 q = httpx.QueryParams(class="st">"a=123")
122 q = q.merge({class="st">"b": class="st">"456"})
123 assert q == httpx.QueryParams(class="st">"a=123&b=456")
124 q = q.merge({class="st">"a": class="st">"000", class="st">"c": class="st">"789"})
125 assert q == httpx.QueryParams(class="st">"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