mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-08 19:34:12 +01:00
update comments
This commit is contained in:
parent
0c6881d8a1
commit
f3a032e75e
1 changed files with 3 additions and 3 deletions
|
@ -102,14 +102,14 @@ class TestUpdater:
|
||||||
self.update_id = update_id
|
self.update_id = update_id
|
||||||
|
|
||||||
# build list of fake updates
|
# build list of fake updates
|
||||||
# returns list of 3 objects with
|
# saves list of 3 objects with
|
||||||
# update_id's 0, 1, 2 and 3
|
# update_id's 0, 1, 2 and 3
|
||||||
self.updates = [FakeUpdate(i) for i in range(0, expected_id)]
|
self.updates = [FakeUpdate(i) for i in range(0, expected_id)]
|
||||||
|
|
||||||
def get_updates(*args, **kwargs):
|
def get_updates(*args, **kwargs):
|
||||||
# we're hitting this func twice
|
# we're hitting this func twice
|
||||||
# 1. no args, return list of updates
|
# 1. no args, return list of updates
|
||||||
# 2. with 1 arg, int => if int == expected_id => test successful
|
# 2. update list of updates, than return it
|
||||||
|
|
||||||
# case 2
|
# case 2
|
||||||
# 2nd call from bootstrap____clean
|
# 2nd call from bootstrap____clean
|
||||||
|
@ -118,7 +118,7 @@ class TestUpdater:
|
||||||
if len(args) > 0:
|
if len(args) > 0:
|
||||||
self.updates = [self.updates[i] for i in range(args[0], expected_id)]
|
self.updates = [self.updates[i] for i in range(args[0], expected_id)]
|
||||||
|
|
||||||
# case 1
|
# case 1 (and 2)
|
||||||
# return list of obj's
|
# return list of obj's
|
||||||
print ('bla')
|
print ('bla')
|
||||||
return self.updates
|
return self.updates
|
||||||
|
|
Loading…
Reference in a new issue