Exemplo n.º 1
0
 def test_welcome_exception(self):
     config = {}
     response = opsdroid.welcome_message(config)
     self.assertIsNone(response)
Exemplo n.º 2
0
 def test_welcome_message(self):
     config = {"welcome-message": True}
     with mock.patch('opsdroid.__main__._LOGGER.info') as logmock:
         opsdroid.welcome_message(config)
         self.assertTrue(logmock.called)
Exemplo n.º 3
0
 def test_welcome_message(self):
     config = {"welcome-message": True}
     opsdroid.welcome_message(config)
     self.assertLogs('_LOGGER', 'info')
Exemplo n.º 4
0
 def test_welcome_exception(self):
     config = {}
     response = opsdroid.welcome_message(config)
     self.assertIsNone(response)
Exemplo n.º 5
0
 def test_welcome_message(self):
     config = {"welcome-message": True}
     opsdroid.welcome_message(config)
     self.assertLogs('_LOGGER', 'info')