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

Add a test to reproduce #1006

This commit is contained in:
Jakub Roztocil 2020-12-22 22:56:45 +01:00
parent 1828da6a50
commit 57b1baf1d1

View File

@ -1,8 +1,8 @@
"""Miscellaneous regression tests"""
import pytest
from utils import http, HTTP_OK
from httpie.compat import is_windows
from utils import HTTP_OK, MockEnvironment, http
def test_Host_header_overwrite(httpbin):
@ -25,3 +25,18 @@ def test_output_devnull(httpbin):
"""
http('--output=/dev/null', httpbin + '/get')
@pytest.mark.skip(reason='TODO: fix #1006')
def test_verbose_redirected_stdout_separator(httpbin):
"""
<https://github.com/httpie/httpie/issues/1006>
"""
r = http(
'-v',
httpbin.url + '/post',
'a=b',
env=MockEnvironment(stdout_isatty=False),
)
assert '}HTTP/' not in r