(httpbin_with_chunked_support)
| 47 | |
| 48 | |
| 49 | def test_chunked_stdin(httpbin_with_chunked_support): |
| 50 | r = http( |
| 51 | '--verbose', |
| 52 | '--chunked', |
| 53 | httpbin_with_chunked_support + '/post', |
| 54 | env=MockEnvironment( |
| 55 | stdin=StdinBytesIO(FILE_PATH.read_bytes()), |
| 56 | stdin_isatty=False, |
| 57 | ) |
| 58 | ) |
| 59 | assert HTTP_OK in r |
| 60 | assert 'Transfer-Encoding: chunked' in r |
| 61 | assert r.count(FILE_CONTENT) == 2 |
| 62 | |
| 63 | |
| 64 | def test_chunked_stdin_multiple_chunks(httpbin_with_chunked_support): |
nothing calls this directly
no test coverage detected