Skip to content
Myr

Fix test_headers_preserve_order

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

authored by Piotr Jurkiewicz · committed by Piotr Jurkiewicz · parent c8a0fc6 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:tests/test_requests.py+2 added-2 removed
323 unmodified lines
324 ses.headers['Second'] = '2'325 headers = OrderedDict([('Third', '3'), ('Fourth', '4')])326 headers['Fifth'] = '5'327 headers['Second'] = '222'328 req = requests.Request('GET', httpbin('get'), headers = headers)328 req = requests.Request('GET', httpbin('get'), headers=headers)329 prep = ses.prepare_request(req)330 items = prep.headers.items()330 items = list(prep.headers.items())331 assert items[0] == ('Accept-Encoding', 'identity')332 assert items[1] == ('First', '1')333 assert items[2] == ('Second', '222')334 assert items[3] == ('Third', '3')
1263 unmodified lines