1
0
mirror of https://github.com/httpie/cli.git synced 2025-06-17 00:17:45 +02:00

Reintroduce $ https command alias with https:// as default scheme

Close #608
This commit is contained in:
Jakub Roztocil
2019-08-29 13:08:02 +02:00
parent 8512a630f9
commit 8e04a24b90
9 changed files with 50 additions and 26 deletions

View File

@ -20,7 +20,7 @@ def test_error(get_response):
exc = ConnectionError('Connection aborted')
exc.request = Request(method='GET', url='http://www.google.com')
get_response.side_effect = exc
ret = main(['--ignore-stdin', 'www.google.com'], custom_log_error=error)
ret = main(['http', '--ignore-stdin', 'www.google.com'], custom_log_error=error)
assert ret == ExitStatus.ERROR
assert error_msg == (
'ConnectionError: '
@ -34,7 +34,7 @@ def test_error_traceback(get_response):
exc.request = Request(method='GET', url='http://www.google.com')
get_response.side_effect = exc
with raises(ConnectionError):
main(['--ignore-stdin', '--traceback', 'www.google.com'])
main(['http', '--ignore-stdin', '--traceback', 'www.google.com'])
def test_max_headers_limit(httpbin_both):