@pytest.mark.skipif(is_windows, reason='Pretty redirect not supported under Windows')
def test_pretty_redirected_stream(httpbin):
 with open(BIN_FILE_PATH, 'rb') as f:
  env = TestEnvironment(colors=256, stdin=f, stdin_isatty=False, stdout_isatty=False)
  r = http('--verbose', '--pretty=all', '--stream', 'GET', (httpbin.url + '/get'), env=env)
 assert (BINARY_SUPPRESSED_NOTICE.decode() in r)

@ pytest . mark . skipif ( is_windows , reason = 'Pretty redirect not supported under Windows' ) def test_pretty_redirected_stream ( httpbin ) : with open ( BIN_FILE_PATH , 'rb' ) as f : env = TestEnvironment ( colors = 256 , stdin = f , stdin_isatty = False , stdout_isatty = False ) r = http ( '--verbose' , '--pretty=all' , '--stream' , 'GET' , ( httpbin . url + '/get' ) , env = env ) assert ( BINARY_SUPPRESSED_NOTICE . decode ( ) in r )
test that --stream works with prettified redirected output .