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

Function test_cookies_update

tests/models/test_cookies.py:23–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def test_cookies_update():
24 cookies = httpx.Cookies()
25 more_cookies = httpx.Cookies()
26 more_cookies.set("name", "value", domain="example.com")
27
28 cookies.update(more_cookies)
29 assert dict(cookies) == {"name": "value"}
30 assert cookies.get("name", domain="example.com") == "value"
31
32
33def test_cookies_with_domain():

Callers

nothing calls this directly

Calls 3

setMethod · 0.95
updateMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected