mirror of
https://github.com/httpie/cli.git
synced 2024-11-08 00:44:45 +01:00
Added test for -F shortcut
This commit is contained in:
parent
76e15b227c
commit
35a99fe04b
@ -1,4 +1,6 @@
|
||||
"""High-level tests."""
|
||||
import pytest
|
||||
|
||||
from httpie import ExitStatus
|
||||
from utils import http, HTTP_OK
|
||||
|
||||
@ -10,8 +12,9 @@ def test_follow_all_redirects_shown(httpbin):
|
||||
assert HTTP_OK in r
|
||||
|
||||
|
||||
def test_follow_without_all_redirects_hidden(httpbin):
|
||||
r = http('--follow', httpbin.url + '/redirect/2')
|
||||
@pytest.mark.parametrize('follow_flag', ['--follow', '-F'])
|
||||
def test_follow_without_all_redirects_hidden(httpbin, follow_flag):
|
||||
r = http(follow_flag, httpbin.url + '/redirect/2')
|
||||
assert r.count('HTTP/1.1') == 1
|
||||
assert HTTP_OK in r
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user