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)
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 )
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)