mirror of
https://github.com/httpie/cli.git
synced 2024-11-29 03:03:44 +01:00
Add a test to reproduce #1006
This commit is contained in:
parent
1828da6a50
commit
57b1baf1d1
@ -1,8 +1,8 @@
|
|||||||
"""Miscellaneous regression tests"""
|
"""Miscellaneous regression tests"""
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from utils import http, HTTP_OK
|
|
||||||
from httpie.compat import is_windows
|
from httpie.compat import is_windows
|
||||||
|
from utils import HTTP_OK, MockEnvironment, http
|
||||||
|
|
||||||
|
|
||||||
def test_Host_header_overwrite(httpbin):
|
def test_Host_header_overwrite(httpbin):
|
||||||
@ -25,3 +25,18 @@ def test_output_devnull(httpbin):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
http('--output=/dev/null', httpbin + '/get')
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user