MCPcopy Index your code
hub / github.com/aws/aws-cli / test_stdout

Method test_stdout

tests/unit/test_utils.py:260–263  ·  view source on GitHub ↗
(self, mock_stdout_writer)

Source from the content-addressed store, hash-verified

258
259 @mock.patch('awscli.utils.get_stdout_text_writer')
260 def test_stdout(self, mock_stdout_writer):
261 with self.stream_factory.get_stdout_stream() as stream:
262 stream.write()
263 self.assertTrue(mock_stdout_writer.called)
264
265 def test_can_silence_io_error_from_pager(self):
266 self.popen.return_value = MockProcess()

Callers

nothing calls this directly

Calls 2

get_stdout_streamMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected