Skip to content

Commit f34c09d

Browse files
committed
Fix image sizes in tests.
1 parent 5285f63 commit f34c09d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_bot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def testSendJPGURLPhoto(self):
128128
photo='http://dummyimage.com/600x400/000/fff.jpg&text=telegram', chat_id=self._chat_id)
129129

130130
self.assertTrue(self.is_json(message.to_json()))
131-
self.assertEqual(message.photo[0].file_size, 822)
131+
self.assertEqual(message.photo[0].file_size, 813)
132132

133133
@flaky(3, 1)
134134
@timeout(10)
@@ -137,7 +137,7 @@ def testSendPNGURLPhoto(self):
137137
photo='http://dummyimage.com/600x400/000/fff.png&text=telegram', chat_id=self._chat_id)
138138

139139
self.assertTrue(self.is_json(message.to_json()))
140-
self.assertEqual(message.photo[0].file_size, 685)
140+
self.assertEqual(message.photo[0].file_size, 670)
141141

142142
@flaky(3, 1)
143143
@timeout(10)
@@ -146,7 +146,7 @@ def testSendGIFURLPhoto(self):
146146
photo='http://dummyimage.com/600x400/000/fff.gif&text=telegram', chat_id=self._chat_id)
147147

148148
self.assertTrue(self.is_json(message.to_json()))
149-
self.assertEqual(message.photo[0].file_size, 685)
149+
self.assertEqual(message.photo[0].file_size, 670)
150150

151151
@flaky(3, 1)
152152
@timeout(10)

0 commit comments

Comments
 (0)