From 9134e8dd1a6a1cff30fc68a666659f5069707715 Mon Sep 17 00:00:00 2001 From: eternnoir Date: Sun, 21 May 2017 19:58:00 +0800 Subject: [PATCH] Add send video note test case. --- tests/test_telebot.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_telebot.py b/tests/test_telebot.py index b9b460c..8c0cf76 100644 --- a/tests/test_telebot.py +++ b/tests/test_telebot.py @@ -403,3 +403,9 @@ class TestTeleBot: def test_not_string(self): i1 = 10 assert not util.is_string(i1) + + def test_send_video_note(self): + file_data = open('./test_data/test_video.mp4', 'rb') + tb = telebot.TeleBot(TOKEN) + ret_msg = tb.send_video_note(CHAT_ID, file_data) + assert ret_msg.message_id