Skip to content
Myr

Test if cookies are saving to session when session.request is called with return_response=False

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

authored by Roman Haritonov · committed by Roman Haritonov · parent 0308a28 · Browse files · 1 file+10 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+10 added−0 removed

  • tests:+10 added−0 removed

1 file+10 added−0 removed

modified:tests/test_requests.py+10 added
724 unmodified lines
725 assert not params['a'] in r3.text726 assert params3['b'] in r3.text727 assert params3['c'] in r3.text728729 def test_session_cookies_with_return_response_false(self):730 s = requests.session()731 # return_response=False as it does requests.async.get732 rq = get(httpbin('cookies', 'set', 'k', 'v'), return_response=False,733 allow_redirects=True, session=s)734 rq.send(prefetch=True)735 c = rq.response.json.get('cookies')736 assert 'k' in c737 assert 'k' in s.cookies738739 def test_session_pickling(self):740741 s = requests.session(742 headers={'header': 'value'},
175 unmodified lines