@@ -65,7 +65,8 @@ def setUp(self):
6565 @timeout (10 )
6666 def test_send_video_required_args_only (self ):
6767 message = self ._bot .sendVideo (self ._chat_id ,
68- self .video_file )
68+ self .video_file ,
69+ timeout = 10 )
6970
7071 video = message .video
7172
@@ -83,6 +84,7 @@ def test_send_video_required_args_only(self):
8384 def test_send_video_all_args (self ):
8485 message = self ._bot .sendVideo (self ._chat_id ,
8586 self .video_file ,
87+ timeout = 10 ,
8688 duration = self .duration ,
8789 caption = self .caption )
8890
@@ -104,6 +106,7 @@ def test_send_video_all_args(self):
104106 def test_send_video_mp4_file (self ):
105107 message = self ._bot .sendVideo (chat_id = self ._chat_id ,
106108 video = self .video_file ,
109+ timeout = 10 ,
107110 duration = self .duration ,
108111 caption = self .caption )
109112
@@ -125,6 +128,7 @@ def test_send_video_mp4_file(self):
125128 def test_send_video_mp4_file_with_custom_filename (self ):
126129 message = self ._bot .sendVideo (chat_id = self ._chat_id ,
127130 video = self .video_file ,
131+ timeout = 10 ,
128132 duration = self .duration ,
129133 caption = self .caption ,
130134 filename = 'telegram_custom.mp4' )
@@ -147,6 +151,7 @@ def test_send_video_mp4_file_with_custom_filename(self):
147151 def test_send_video_mp4_file_url (self ):
148152 message = self ._bot .sendVideo (chat_id = self ._chat_id ,
149153 video = self .video_file_url ,
154+ timeout = 10 ,
150155 duration = self .duration ,
151156 caption = self .caption )
152157
@@ -167,6 +172,7 @@ def test_send_video_mp4_file_url(self):
167172 def test_send_video_resend (self ):
168173 message = self ._bot .sendVideo (chat_id = self ._chat_id ,
169174 video = self .video_file_id ,
175+ timeout = 10 ,
170176 duration = self .duration ,
171177 caption = self .caption )
172178
@@ -216,6 +222,7 @@ def test_error_send_video_empty_file(self):
216222
217223 self .assertRaises (telegram .TelegramError ,
218224 lambda : self ._bot .sendVideo (chat_id = self ._chat_id ,
225+ timeout = 10 ,
219226 ** json_dict ))
220227
221228 @flaky (3 , 1 )
@@ -228,6 +235,7 @@ def test_error_send_video_empty_file_id(self):
228235
229236 self .assertRaises (telegram .TelegramError ,
230237 lambda : self ._bot .sendVideo (chat_id = self ._chat_id ,
238+ timeout = 10 ,
231239 ** json_dict ))
232240
233241 @flaky (3 , 1 )
@@ -240,6 +248,7 @@ def test_error_video_without_required_args(self):
240248
241249 self .assertRaises (TypeError ,
242250 lambda : self ._bot .sendVideo (chat_id = self ._chat_id ,
251+ timeout = 10 ,
243252 ** json_dict ))
244253
245254if __name__ == '__main__' :
0 commit comments