MCPcopy Index your code
hub / github.com/httpie/cli / test_ignore_stdin

Method test_ignore_stdin

tests/test_cli.py:336–344  ·  view source on GitHub ↗
(self, httpbin)

Source from the content-addressed store, hash-verified

334class 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',

Callers

nothing calls this directly

Calls 3

MockEnvironmentClass · 0.85
StdinBytesIOClass · 0.85
httpFunction · 0.85

Tested by

no test coverage detected