def test_should_dont_autoconfig_python_logging_if_dont_have_special_key(
     self, settings_dict_logging
 ):
     settings_dict_logging['SIMPLE_SETTINGS']['CONFIGURE_LOGGING'] = False
     with patch('logging.config.dictConfig') as mock:
         configure_logging(settings_dict_logging)
     assert not mock.called
示例#2
0
 def test_should_dont_autoconfig_python_logging_if_dont_have_special_key(
     self, settings_dict_logging
 ):
     settings_dict_logging['SIMPLE_SETTINGS']['CONFIGURE_LOGGING'] = False
     with patch('logging.config.dictConfig') as mock:
         configure_logging(settings_dict_logging)
     assert not mock.called
示例#3
0
 def test_should_autoconfig_python_logging(self, settings_dict_logging):
     with patch('logging.config.dictConfig') as mock:
         configure_logging(settings_dict_logging)
     mock.assert_called_once_with(settings_dict_logging['LOGGING'])
 def test_should_autoconfig_python_logging(self, settings_dict_logging):
     with patch('logging.config.dictConfig') as mock:
         configure_logging(settings_dict_logging)
     mock.assert_called_once_with(settings_dict_logging['LOGGING'])