(httpbin_both)
| 107 | |
| 108 | |
| 109 | def test_POST_stdin(httpbin_both): |
| 110 | env = MockEnvironment( |
| 111 | stdin=StdinBytesIO(FILE_PATH.read_bytes()), |
| 112 | stdin_isatty=False, |
| 113 | ) |
| 114 | r = http('--form', 'POST', httpbin_both + '/post', env=env) |
| 115 | assert HTTP_OK in r |
| 116 | assert FILE_CONTENT in r |
| 117 | |
| 118 | |
| 119 | def test_POST_file(httpbin_both): |
nothing calls this directly
no test coverage detected