mirror of
https://github.com/httpie/cli.git
synced 2025-01-26 23:39:29 +01:00
Fixed headers tests; Require requests>=1.2.3.
This commit is contained in:
parent
172df162b3
commit
c3d550e930
2
setup.py
2
setup.py
@ -12,7 +12,7 @@ if sys.argv[-1] == 'test':
|
||||
|
||||
|
||||
requirements = [
|
||||
'requests>=1.0.4',
|
||||
'requests>=1.2.3',
|
||||
'Pygments>=1.5'
|
||||
]
|
||||
if sys.version_info[:2] in ((2, 6), (3, 1)):
|
||||
|
@ -1170,6 +1170,8 @@ class ItemParsingTest(BaseTestCase):
|
||||
# files
|
||||
self.key_value_type('bar\\@baz@%s' % FILE_PATH_ARG)
|
||||
])
|
||||
# `requests.structures.CaseInsensitiveDict` => `dict`
|
||||
headers = dict(headers._store.values())
|
||||
self.assertDictEqual(headers, {
|
||||
'foo:bar': 'baz',
|
||||
'jack@jill': 'hill',
|
||||
@ -1199,6 +1201,8 @@ class ItemParsingTest(BaseTestCase):
|
||||
self.key_value_type('test-file@%s' % FILE_PATH_ARG),
|
||||
self.key_value_type('query==value'),
|
||||
])
|
||||
# `requests.structures.CaseInsensitiveDict` => `dict`
|
||||
headers = dict(headers._store.values())
|
||||
self.assertDictEqual(headers, {
|
||||
'header': 'value',
|
||||
'eh': ''
|
||||
|
Loading…
Reference in New Issue
Block a user