telegram_framework.tests.test_py_telegram_bot_api package

Submodules

telegram_framework.tests.test_py_telegram_bot_api.test_actions module

class telegram_framework.tests.test_py_telegram_bot_api.test_actions.MockTelebot(*args, **kwargs)[source]

Bases: object

reply_to(message, text)[source]
send_message(chat_id, text, parse_mode=None, reply_markup=None)[source]
send_photo(chat_id, photo, caption, parse_mode=None, reply_markup=None)[source]
class telegram_framework.tests.test_py_telegram_bot_api.test_actions.TestActions(methodName='runTest')[source]

Bases: SimpleTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_send_image()[source]

Test send_image: success

test_send_message()[source]

Test send_message: success

test_send_message_force_reply_keyboard()[source]

Test send_message with force.keyboard: success

test_send_message_with_reply_keyboard()[source]

Test send_message with reply.keyboard success

test_send_reply()[source]

Test send_reply: failed: message has no chat

telegram_framework.tests.test_py_telegram_bot_api.test_bot module

class telegram_framework.tests.test_py_telegram_bot_api.test_bot.TestTeleBot(methodName='runTest')[source]

Bases: SimpleTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_find_handler()[source]

Test find_handler: success

test_get_bot()[source]

Test get_bot: success

test_get_commands_list()[source]

Test get_commands_list: success

test_handle_message()[source]

Test handle_message success

test_register_call_handler()[source]

Test register_call_handler: success

test_register_command_handler()[source]

Test register_command_handler: success

test_register_message_handler()[source]

Test register_message_handler

test_register_next_step_handler()[source]

Test register_next_step_handler: success

test_register_text_handler()[source]

Test register_text_handler

test_some_handler_call()[source]
test_start()[source]

Module contents