X Tutup
Skip to content

Commit 8234321

Browse files
committed
Fix tests for Inline Voice Queries
1 parent 5e2d96b commit 8234321

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

tests/test_inlinequeryresultcachedvoice.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def setUp(self):
3737
self.type = 'voice'
3838
self.voice_file_id = 'voice file id'
3939
self.title = 'title'
40-
self.description = 'description'
40+
self.caption = 'caption'
4141
self.input_message_content = telegram.InputTextMessageContent('input_message_content')
4242
self.reply_markup = telegram.InlineKeyboardMarkup([[
4343
telegram.InlineKeyboardButton('reply_markup')
@@ -48,7 +48,7 @@ def setUp(self):
4848
'id': self.id,
4949
'voice_file_id': self.voice_file_id,
5050
'title': self.title,
51-
'description': self.description,
51+
'caption': self.caption,
5252
'input_message_content': self.input_message_content.to_dict(),
5353
'reply_markup': self.reply_markup.to_dict(),
5454
}
@@ -60,7 +60,7 @@ def test_voice_de_json(self):
6060
self.assertEqual(voice.id, self.id)
6161
self.assertEqual(voice.voice_file_id, self.voice_file_id)
6262
self.assertEqual(voice.title, self.title)
63-
self.assertEqual(voice.description, self.description)
63+
self.assertEqual(voice.caption, self.caption)
6464
self.assertDictEqual(voice.input_message_content.to_dict(),
6565
self.input_message_content.to_dict())
6666
self.assertDictEqual(voice.reply_markup.to_dict(), self.reply_markup.to_dict())

tests/test_inlinequeryresultvoice.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def setUp(self):
3737
self.voice_url = 'voice url'
3838
self.title = 'title'
3939
self.voice_duration = 'voice_duration'
40+
self.caption = 'caption'
4041
self.input_message_content = telegram.InputTextMessageContent('input_message_content')
4142
self.reply_markup = telegram.InlineKeyboardMarkup([[
4243
telegram.InlineKeyboardButton('reply_markup')
@@ -48,6 +49,7 @@ def setUp(self):
4849
'voice_url': self.voice_url,
4950
'title': self.title,
5051
'voice_duration': self.voice_duration,
52+
'caption': self.caption,
5153
'input_message_content': self.input_message_content.to_dict(),
5254
'reply_markup': self.reply_markup.to_dict(),
5355
}
@@ -60,6 +62,7 @@ def test_voice_de_json(self):
6062
self.assertEqual(voice.voice_url, self.voice_url)
6163
self.assertEqual(voice.title, self.title)
6264
self.assertEqual(voice.voice_duration, self.voice_duration)
65+
self.assertEqual(voice.caption, self.caption)
6366
self.assertDictEqual(voice.input_message_content.to_dict(),
6467
self.input_message_content.to_dict())
6568
self.assertDictEqual(voice.reply_markup.to_dict(), self.reply_markup.to_dict())

0 commit comments

Comments
 (0)
X Tutup