mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Tests
This commit is contained in:
parent
ed6616e4c7
commit
d49c57699e
@ -64,9 +64,10 @@ def update_type(message):
|
|||||||
poll_answer = None
|
poll_answer = None
|
||||||
my_chat_member = None
|
my_chat_member = None
|
||||||
chat_member = None
|
chat_member = None
|
||||||
|
chat_join_request = None
|
||||||
return types.Update(1001234038283, message, edited_message, channel_post, edited_channel_post, inline_query,
|
return types.Update(1001234038283, message, edited_message, channel_post, edited_channel_post, inline_query,
|
||||||
chosen_inline_result, callback_query, shipping_query, pre_checkout_query, poll, poll_answer,
|
chosen_inline_result, callback_query, shipping_query, pre_checkout_query, poll, poll_answer,
|
||||||
my_chat_member, chat_member)
|
my_chat_member, chat_member, chat_join_request)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture()
|
@pytest.fixture()
|
||||||
@ -83,9 +84,10 @@ def reply_to_message_update_type(reply_to_message):
|
|||||||
poll_answer = None
|
poll_answer = None
|
||||||
my_chat_member = None
|
my_chat_member = None
|
||||||
chat_member = None
|
chat_member = None
|
||||||
|
chat_join_request = None
|
||||||
return types.Update(1001234038284, reply_to_message, edited_message, channel_post, edited_channel_post,
|
return types.Update(1001234038284, reply_to_message, edited_message, channel_post, edited_channel_post,
|
||||||
inline_query, chosen_inline_result, callback_query, shipping_query, pre_checkout_query,
|
inline_query, chosen_inline_result, callback_query, shipping_query, pre_checkout_query,
|
||||||
poll, poll_answer, my_chat_member, chat_member)
|
poll, poll_answer, my_chat_member, chat_member, chat_join_request)
|
||||||
|
|
||||||
|
|
||||||
def next_handler(message):
|
def next_handler(message):
|
||||||
|
@ -485,9 +485,10 @@ class TestTeleBot:
|
|||||||
poll_answer = None
|
poll_answer = None
|
||||||
my_chat_member = None
|
my_chat_member = None
|
||||||
chat_member = None
|
chat_member = None
|
||||||
|
chat_join_request = None
|
||||||
return types.Update(-1001234038283, message, edited_message, channel_post, edited_channel_post, inline_query,
|
return types.Update(-1001234038283, message, edited_message, channel_post, edited_channel_post, inline_query,
|
||||||
chosen_inline_result, callback_query, shipping_query, pre_checkout_query, poll, poll_answer,
|
chosen_inline_result, callback_query, shipping_query, pre_checkout_query, poll, poll_answer,
|
||||||
my_chat_member, chat_member)
|
my_chat_member, chat_member, chat_join_request)
|
||||||
|
|
||||||
def test_is_string_unicode(self):
|
def test_is_string_unicode(self):
|
||||||
s1 = u'string'
|
s1 = u'string'
|
||||||
|
Loading…
Reference in New Issue
Block a user