mirror of
https://github.com/httpie/cli.git
synced 2024-12-24 15:29:03 +01:00
Fixing tests for Travis.
This commit is contained in:
parent
a93d57b58b
commit
238b2e0441
@ -37,7 +37,6 @@ def get_response(name, request_kwargs, config_dir, read_only=False):
|
||||
session = Session(host, name)
|
||||
session.load()
|
||||
|
||||
|
||||
# Update session headers with the request headers.
|
||||
session['headers'].update(request_kwargs.get('headers', {}))
|
||||
# Use the merged headers for the request
|
||||
|
@ -1403,6 +1403,9 @@ class SessionTest(BaseTestCase):
|
||||
)
|
||||
self.assertIn(OK, r3)
|
||||
|
||||
# Origin can differ on Travis.
|
||||
del r1.json['headers']['origin'], r2.json['headers']['origin']
|
||||
|
||||
# Should be the same as before r2.
|
||||
self.assertDictEqual(r1.json, r3.json)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user