mirror of
https://github.com/httpie/cli.git
synced 2024-11-07 16:34:35 +01:00
Add $ http ://
error handling test
This commit is contained in:
parent
861b8b36a8
commit
06d9c14e7a
@ -179,6 +179,11 @@ def test_url_leading_colon_slash_slash(program_name, url_arg, parsed_url):
|
||||
assert args.url == parsed_url
|
||||
|
||||
|
||||
def test_url_colon_slash_slash_only():
|
||||
r = http('://', tolerate_error_exit_status=True)
|
||||
assert r.stderr.strip() == "http: error: InvalidURL: Invalid URL 'http://': No host supplied"
|
||||
|
||||
|
||||
class TestLocalhostShorthand:
|
||||
def test_expand_localhost_shorthand(self):
|
||||
args = parser.parse_args(args=[':'], env=MockEnvironment())
|
||||
|
Loading…
Reference in New Issue
Block a user