diff --git a/tests/test_redirects.py b/tests/test_redirects.py index 579f5c6c..7c1ab506 100644 --- a/tests/test_redirects.py +++ b/tests/test_redirects.py @@ -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