Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Data is an optional kwargs in CallbackQuery according to Telegram
  • Loading branch information
jsmnbom committed Oct 7, 2016
1 parent 67b98e3 commit ade8977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def test_regexGroupHandlerCallbackQuery(self):
Update(
update_id=0,
callback_query=CallbackQuery(
0, None, 'This is a test message for regex group matching.', None)))
0, None, None, data='This is a test message for regex group matching.')))

sleep(.1)
self.assertEqual(self.received_message, (('This', 'regex group'),
Expand Down

0 comments on commit ade8977

Please sign in to comment.