Skip to content
Myr

new failing test_requests_in_history_are_not_overridden()

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 8028103 · Browse files · 1 file+8 added−1 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−1 removed

  • other:+8 added−1 removed

1 file+8 added−1 removed

modified:test_requests.py+8 added-1 removed
167 unmodified lines
168 'foo=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT'169 }170 )171 assert 'foo' not in s.cookies172<<<<<<< HEAD173174 def test_request_cookie_overrides_session_cookie(self):175 s = requests.session()176 s.cookies['foo'] = 'bar'
11 unmodified lines
188 # Make sure the cookie was sent189 assert r.json()['cookies']['foo'] == 'bar'190 # Make sure the session cj is still the custom one191 assert s.cookies is cj191192 193 def test_requests_in_history_are_not_overridden(self):194 resp = requests.get(httpbin('redirect/3'))195 urls = [r.url for r in resp.history]196 req_urls = [r.request.url for r in resp.history]197 self.assertEquals(urls, req_urls)198 199 def test_user_agent_transfers(self):200201 heads = {202 'User-agent': 'Mozilla/5.0 (github.com/kennethreitz/requests)'
547 unmodified lines