Skip to content
Myr

Add another session cookie test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Chase Sterling · committed by Chase Sterling · parent 3ff8d43 · Browse files · 1 file+8 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−0 removed

  • other:+8 added−0 removed

1 file+8 added−0 removed

modified:test_requests.py+8 added
136 unmodified lines
137 }138 )139 assert 'foo' not in s.cookies140141 def test_request_cookie_overrides_session_cookie(self):142 s = requests.session()143 s.cookies['foo'] = 'bar'144 r = s.get(httpbin('cookies'), cookies={'foo': 'baz'})145 assert r.json()['cookies']['foo'] == 'baz'146 # Session cookie should not be modified147 assert s.cookies['foo'] == 'bar'148149 def test_generic_cookiejar_works(self):150 cj = cookielib.CookieJar()151 cookiejar_from_dict({'foo': 'bar'}, cj)152 s = requests.session()
311 unmodified lines