mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-30 11:19:24 +02:00
Update test cases
Needs proper animation file_id and size. Also assertEqual can't test if two objects have the same data, so we just check the file_id instead.
This commit is contained in:
parent
8dc10fc7b2
commit
04feeeff55
1 changed files with 3 additions and 3 deletions
|
@ -167,8 +167,8 @@ class BotTest(BaseTest, unittest.TestCase):
|
|||
|
||||
self.assertTrue(self.is_json(message.to_json()))
|
||||
self.assertEqual(message.game.description, 'This is a test game for python-telegram-bot.')
|
||||
self.assertEqual(message.game.animation.file_id, 'BQADBAADFQEAAny4rAVRC_XtgXzEvAI')
|
||||
self.assertEqual(message.game.photo[0].file_size, 849)
|
||||
self.assertEqual(message.game.animation.file_id, 'BQADAQADKwIAAvjAuQABozciVqhFDO0C')
|
||||
self.assertEqual(message.game.photo[0].file_size, 851)
|
||||
|
||||
@flaky(3, 1)
|
||||
@timeout(10)
|
||||
|
@ -292,7 +292,7 @@ class BotTest(BaseTest, unittest.TestCase):
|
|||
|
||||
self.assertTrue(self.is_json(game.to_json()))
|
||||
self.assertEqual(message.game.description, game.game.description)
|
||||
self.assertEqual(message.game.animation, game.game.animation)
|
||||
self.assertEqual(message.game.animation.file_id, game.game.animation.file_id)
|
||||
self.assertEqual(message.game.photo[0].file_size, game.game.photo[0].file_size)
|
||||
self.assertNotEqual(message.game.text, game.game.text)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue