Test that --stream works with non-prettified redirected terminal output.
(httpbin)
| 91 | |
| 92 | |
| 93 | def test_encoded_stream(httpbin): |
| 94 | """Test that --stream works with non-prettified |
| 95 | redirected terminal output.""" |
| 96 | env = MockEnvironment( |
| 97 | stdin=StdinBytesIO(BIN_FILE_PATH.read_bytes()), |
| 98 | stdin_isatty=False, |
| 99 | ) |
| 100 | r = http('--pretty=none', '--stream', '--verbose', 'GET', |
| 101 | httpbin + '/get', env=env) |
| 102 | assert BINARY_SUPPRESSED_NOTICE.decode() in r |
| 103 | |
| 104 | |
| 105 | def test_redirected_stream(httpbin): |
nothing calls this directly
no test coverage detected