MCPcopy
hub / github.com/aws/aws-cli / test_error_logger

Method test_error_logger

tests/unit/test_clidriver.py:346–349  ·  view source on GitHub ↗
(self, set_stream_logger)

Source from the content-addressed store, hash-verified

344
345 @mock.patch('awscli.clidriver.set_stream_logger')
346 def test_error_logger(self, set_stream_logger):
347 self.driver.main('s3 list-objects --bucket foo --profile foo'.split())
348 expected = {'log_level': logging.ERROR, 'logger_name': 'awscli'}
349 set_stream_logger.assert_called_with(**expected)
350
351 def test_ctrl_c_is_handled(self):
352 fake_client = mock.Mock()

Callers

nothing calls this directly

Calls 1

mainMethod · 0.45

Tested by

no test coverage detected