MCPcopy
hub / github.com/httpie/cli / test_quiet

Method test_quiet

tests/test_output.py:51–62  ·  view source on GitHub ↗
(self, httpbin, quiet_flags)

Source from the content-addressed store, hash-verified

49
50 @pytest.mark.parametrize('quiet_flags', QUIET_SCENARIOS)
51 def test_quiet(self, httpbin, quiet_flags):
52 env = MockEnvironment(
53 stdin_isatty=True,
54 stdout_isatty=True,
55 devnull=io.BytesIO()
56 )
57 r = http(*quiet_flags, 'GET', httpbin + '/get', env=env)
58 assert env.stdout is env.devnull
59 assert env.stderr is env.devnull
60 assert HTTP_OK in r.devnull
61 assert r == ''
62 assert r.stderr == ''
63
64 def test_quiet_with_check_status_non_zero(self, httpbin):
65 r = http(

Callers

nothing calls this directly

Calls 2

MockEnvironmentClass · 0.85
httpFunction · 0.85

Tested by

no test coverage detected