Skip to content

Commit

Permalink
Set a dummy token
Browse files Browse the repository at this point in the history
  • Loading branch information
David256 committed Dec 13, 2024
1 parent dc90293 commit 172828d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_telebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ def test_message_listener(self):
def listener(messages):
assert len(messages) == 100

tb = telebot.TeleBot('')
tb = telebot.TeleBot('10:need')
tb.set_update_listener(listener)

def test_message_handler(self):
tb = telebot.TeleBot('')
tb = telebot.TeleBot('10:need')
msg = self.create_text_message('/help')

@tb.message_handler(commands=['help', 'start'])
Expand All @@ -60,7 +60,7 @@ def command_handler(message):
assert msg.text == 'got'

def test_message_handler_reg(self):
bot = telebot.TeleBot('')
bot = telebot.TeleBot('10:need')
msg = self.create_text_message(r'https://web.telegram.org/')

# noinspection PyUnusedLocal
Expand All @@ -73,7 +73,7 @@ def command_url(message):
assert msg.text == 'got'

def test_message_handler_lambda(self):
bot = telebot.TeleBot('')
bot = telebot.TeleBot('10:need')
msg = self.create_text_message(r'lambda_text')

# noinspection PyUnusedLocal
Expand All @@ -86,7 +86,7 @@ def command_url(message):
assert msg.text == 'got'

def test_message_handler_lambda_fail(self):
bot = telebot.TeleBot('')
bot = telebot.TeleBot('10:need')
msg = self.create_text_message(r'text')

# noinspection PyUnusedLocal
Expand All @@ -99,7 +99,7 @@ def command_url(message):
assert not msg.text == 'got'

def test_message_handler_reg_fail(self):
bot = telebot.TeleBot('')
bot = telebot.TeleBot('10:need')
msg = self.create_text_message(r'web.telegram.org/')

# noinspection PyUnusedLocal
Expand Down Expand Up @@ -660,7 +660,7 @@ def test_typed_middleware_handler(self):

apihelper.ENABLE_MIDDLEWARE = True

tb = telebot.TeleBot('')
tb = telebot.TeleBot('10:need')
update = self.create_message_update('/help')

# noinspection PyUnusedLocal
Expand All @@ -681,7 +681,7 @@ def test_default_middleware_handler(self):

apihelper.ENABLE_MIDDLEWARE = True

tb = telebot.TeleBot('')
tb = telebot.TeleBot('10:need')
update = self.create_message_update('/help')

# noinspection PyUnusedLocal
Expand Down

0 comments on commit 172828d

Please sign in to comment.