Exemple #1
0
 def test_welcome_exception(self):
     config = {}
     response = opsdroid.welcome_message(config)
     self.assertIsNone(response)
Exemple #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)
Exemple #3
0
 def test_welcome_message(self):
     config = {"welcome-message": True}
     opsdroid.welcome_message(config)
     self.assertLogs('_LOGGER', 'info')
Exemple #4
0
 def test_welcome_exception(self):
     config = {}
     response = opsdroid.welcome_message(config)
     self.assertIsNone(response)
Exemple #5
0
 def test_welcome_message(self):
     config = {"welcome-message": True}
     opsdroid.welcome_message(config)
     self.assertLogs('_LOGGER', 'info')