1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-24 08:22:22 +02:00

Add a reproduction test case for #1082 (#1085)

The fix may actually be slightly more complex than I expected.
We would need, at first sight, to loose the prepared requests + responses streaming.

A potential solution will come in a near future.
This commit is contained in:
Mickaël Schoentgen 2021-06-09 09:43:06 +02:00 committed by GitHub
parent 350f973f70
commit 9792513c68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,13 @@ def test_follow_without_all_redirects_hidden(httpbin, follow_flag):
assert HTTP_OK in r
@pytest.mark.xfail(True, reason="https://github.com/httpie/httpie/issues/1082")
def test_follow_output_options_used_for_redirects(httpbin):
r = http('--follow', '--print=H', httpbin.url + '/redirect/2')
assert r.count('GET /') == 1
assert HTTP_OK not in r
def test_follow_all_output_options_used_for_redirects(httpbin):
r = http('--check-status',
'--follow',