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