(httpbin_with_chunked_support)
| 62 | |
| 63 | |
| 64 | def test_chunked_stdin_multiple_chunks(httpbin_with_chunked_support): |
| 65 | data = FILE_PATH.read_bytes() |
| 66 | stdin_bytes = data + b'\n' + data |
| 67 | r = http( |
| 68 | '--verbose', |
| 69 | '--chunked', |
| 70 | httpbin_with_chunked_support + '/post', |
| 71 | env=MockEnvironment( |
| 72 | stdin=StdinBytesIO(stdin_bytes), |
| 73 | stdin_isatty=False, |
| 74 | stdout_isatty=True, |
| 75 | ) |
| 76 | ) |
| 77 | assert HTTP_OK in r |
| 78 | assert 'Transfer-Encoding: chunked' in r |
| 79 | assert r.count(FILE_CONTENT) == 4 |
| 80 | |
| 81 | |
| 82 | def test_chunked_raw(httpbin_with_chunked_support): |
nothing calls this directly
no test coverage detected