Skip to content

Commit

Permalink
Merge pull request #2100 from anonymousdouble/patch-1
Browse files Browse the repository at this point in the history
Update test_telebot.py
  • Loading branch information
Badiboy authored Dec 19, 2023
2 parents 227270b + 4f88668 commit 3bb4e2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_telebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ def test_send_video(self):
assert ret_msg.message_id

def test_send_video_dis_noti(self):
file_data = open('./test_data/test_video.mp4', 'rb')
tb = telebot.TeleBot(TOKEN)
ret_msg = tb.send_video(CHAT_ID, file_data, disable_notification=True)
assert ret_msg.message_id
with open('./test_data/test_video.mp4', 'rb') as file_data:
tb = telebot.TeleBot(TOKEN)
ret_msg = tb.send_video(CHAT_ID, file_data, disable_notification=True)
assert ret_msg.message_id

def test_send_video_more_params(self):
file_data = open('./test_data/test_video.mp4', 'rb')
Expand Down

0 comments on commit 3bb4e2d

Please sign in to comment.