You've already forked httpie-cli
mirror of
https://github.com/httpie/cli.git
synced 2026-06-09 21:06:52 +02:00
Fixing tests for Travis.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user