mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-02-16 18:31:45 +01:00
Updated tests for start_webhook
This commit is contained in:
parent
8a4d5c5de7
commit
809fe4b74f
1 changed files with 2 additions and 3 deletions
|
@ -350,7 +350,7 @@ class UpdaterTest(BaseTest, unittest.TestCase):
|
|||
# Select random port for travis
|
||||
port = randrange(1024, 49152)
|
||||
self.updater.start_webhook('127.0.0.1', port,
|
||||
listen='127.0.0.1',
|
||||
url_path='TOKEN',
|
||||
cert='./tests/test_updater.py',
|
||||
key='./tests/test_updater.py')
|
||||
sleep(0.5)
|
||||
|
@ -411,8 +411,7 @@ class UpdaterTest(BaseTest, unittest.TestCase):
|
|||
|
||||
# Select random port for travis
|
||||
port = randrange(1024, 49152)
|
||||
self.updater.start_webhook('127.0.0.1', port,
|
||||
listen='127.0.0.1',)
|
||||
self.updater.start_webhook('127.0.0.1', port)
|
||||
sleep(0.5)
|
||||
|
||||
# Now, we send an update to the server via urlopen
|
||||
|
|
Loading…
Add table
Reference in a new issue