add setWebhook to mock bot

This commit is contained in:
Jannes Höke 2015-11-21 15:48:45 +01:00
parent 0006294f29
commit 1c7e784662

View file

@ -28,7 +28,7 @@ import re
sys.path.append('.')
from telegram import Update, Message, TelegramError
from base import BaseTest
from tests.base import BaseTest
class BotEventHandlerTest(BaseTest, unittest.TestCase):
@ -167,6 +167,9 @@ class MockBot:
update.message = message
return update
def setWebhook(self, url=None, certificate=None):
pass
def getUpdates(self,
offset=None,
limit=100,