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

Function test_chunked_stdin

tests/test_uploads.py:49–61  ·  view source on GitHub ↗
(httpbin_with_chunked_support)

Source from the content-addressed store, hash-verified

47
48
49def 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
64def test_chunked_stdin_multiple_chunks(httpbin_with_chunked_support):

Callers

nothing calls this directly

Calls 3

httpFunction · 0.85
MockEnvironmentClass · 0.85
StdinBytesIOClass · 0.85

Tested by

no test coverage detected