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