Ejemplo n.º 1
0
 def test_slack_call(self, mock_call):
     gendo = Gendo(TEST_TOKEN)
     gendo.speak(TEST_TEXT, TEST_CHANNEL)
     mock_call.assert_called_with('chat.postMessage',
                                  as_user='******',
                                  channel='tests',
                                  text=TEST_TEXT)
Ejemplo n.º 2
0
 def test_slack_call(self, mock_call):
     gendo = Gendo(TEST_TOKEN)
     gendo.speak(TEST_TEXT, TEST_CHANNEL)
     mock_call.assert_called_with(
       'chat.postMessage',
       as_user='******',
       channel='tests',
       text=TEST_TEXT
     )
Ejemplo n.º 3
0
 def test_speak(self, mock_speak):
     gendo = Gendo(TEST_TOKEN)
     gendo.speak(TEST_TEXT, TEST_CHANNEL)
     mock_speak.assert_called_with(TEST_TEXT, TEST_CHANNEL)
Ejemplo n.º 4
0
 def test_speak(self, mock_speak):
     gendo = Gendo(TEST_TOKEN)
     gendo.speak(TEST_TEXT, TEST_CHANNEL)
     mock_speak.assert_called_with(TEST_TEXT, TEST_CHANNEL)