mirror of
https://github.com/httpie/cli.git
synced 2024-11-24 08:22:22 +02:00
PEP8
This commit is contained in:
parent
f202f338a4
commit
6cb822255d
@ -14,11 +14,12 @@ def test_error(program):
|
||||
program.side_effect = exc
|
||||
r = http('www.google.com', tolerate_error_exit_status=True)
|
||||
assert r.exit_status == ExitStatus.ERROR
|
||||
assert (
|
||||
'ConnectionError: '
|
||||
'Connection aborted while doing a GET request to URL: '
|
||||
'http://www.google.com'
|
||||
) in r.stderr
|
||||
error_msg = (
|
||||
'ConnectionError: '
|
||||
'Connection aborted while doing a GET request to URL: '
|
||||
'http://www.google.com'
|
||||
)
|
||||
assert error_msg in r.stderr
|
||||
|
||||
|
||||
@mock.patch('httpie.core.program')
|
||||
|
Loading…
Reference in New Issue
Block a user