(self, httpbin)
| 334 | class TestStdin: |
| 335 | |
| 336 | def test_ignore_stdin(self, httpbin): |
| 337 | env = MockEnvironment( |
| 338 | stdin=StdinBytesIO(FILE_PATH.read_bytes()), |
| 339 | stdin_isatty=False, |
| 340 | ) |
| 341 | r = http('--ignore-stdin', '--verbose', httpbin + '/get', env=env) |
| 342 | assert HTTP_OK in r |
| 343 | assert 'GET /get HTTP' in r, "Don't default to POST." |
| 344 | assert FILE_CONTENT not in r, "Don't send stdin data." |
| 345 | |
| 346 | def test_ignore_stdin_cannot_prompt_password(self, httpbin): |
| 347 | r = http('--ignore-stdin', '--auth=no-password', httpbin + '/get', |
nothing calls this directly
no test coverage detected