test_generic_cookiejar_works() — requests Function Reference
Architecture documentation for the test_generic_cookiejar_works() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD cce63618_0c17_9a02_840e_d50e277c0597["test_generic_cookiejar_works()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] cce63618_0c17_9a02_840e_d50e277c0597 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 style cce63618_0c17_9a02_840e_d50e277c0597 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 423–432
def test_generic_cookiejar_works(self, httpbin):
cj = cookielib.CookieJar()
cookiejar_from_dict({"foo": "bar"}, cj)
s = requests.session()
s.cookies = cj
r = s.get(httpbin("cookies"))
# Make sure the cookie was sent
assert r.json()["cookies"]["foo"] == "bar"
# Make sure the session cj is still the custom one
assert s.cookies is cj
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_generic_cookiejar_works() do?
test_generic_cookiejar_works() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_generic_cookiejar_works() defined?
test_generic_cookiejar_works() is defined in tests/test_requests.py at line 423.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free