From 769bb55bbe5b16ae3eb9ae83f0a0f2414a5dbfbc Mon Sep 17 00:00:00 2001 From: eternnoir Date: Tue, 3 May 2016 21:05:11 +0800 Subject: [PATCH] Update test. --- tests/test_telebot.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/test_telebot.py b/tests/test_telebot.py index 2dc5319a3..5aeaa3b1f 100644 --- a/tests/test_telebot.py +++ b/tests/test_telebot.py @@ -245,6 +245,17 @@ def test_send_message_with_markup(self): ret_msg = tb.send_message(CHAT_ID, text, disable_notification=True, reply_markup=markup) assert ret_msg.message_id + def test_send_message_with_markup_use_string(self): + text = 'CI Test Message' + tb = telebot.TeleBot(TOKEN) + markup = types.ReplyKeyboardMarkup() + markup.add("1") + markup.add("2") + markup.add("3") + markup.add("4") + ret_msg = tb.send_message(CHAT_ID, text, disable_notification=True, reply_markup=markup) + assert ret_msg.message_id + def test_send_message_with_inlinemarkup(self): text = 'CI Test Message' tb = telebot.TeleBot(TOKEN)