telegram_framework.tests.test_python_telegram_bot package

Submodules

telegram_framework.tests.test_python_telegram_bot.test_actions module

class telegram_framework.tests.test_python_telegram_bot.test_actions.MockBot(*args, **kwargs)[source]

Bases: object

send_message(chat_id, text, parse_mode=None, reply_markup=None, reply_to_message_id=None)[source]
send_photo(chat_id, photo, caption, parse_mode, reply_markup)[source]
class telegram_framework.tests.test_python_telegram_bot.test_actions.MockUpdater[source]

Bases: object

class telegram_framework.tests.test_python_telegram_bot.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_python_telegram_bot.test_adapters module

class telegram_framework.tests.test_python_telegram_bot.test_adapters.TestAdapters(methodName='runTest')[source]

Bases: TestCase

setUp()[source]

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

test_prepare_call_handler()[source]
test_prepare_handler()[source]

telegram_framework.tests.test_python_telegram_bot.test_bot module

class telegram_framework.tests.test_python_telegram_bot.test_bot.TestPTB(methodName='runTest')[source]

Bases: SimpleTestCase

setUp()[source]

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

test__next_step_router_handler()[source]

Test register_next_step_handler: success, raise DispatcherHandlerStop next_steps exists

test__next_step_router_none()[source]

Test register_next_step_handler: success, return None empty next_steps

test_get_bot()[source]
test_get_commands_list()[source]

Test get_commands_list: success

test_register_call_handler()[source]

Test register_call_handler: success

test_register_call_handler_with_filter()[source]

Test register_call_handler: success with filter_function

test_register_command_handler()[source]

Test register_command_handler: success

test_register_message_handler()[source]

Test register_message_handler: success

test_register_next_step_handler()[source]

Test register_next_step_handler: success

test_register_text_handler()[source]

Test register_text_handler: success

test_some_handler()[source]
test_start()[source]

telegram_framework.tests.test_python_telegram_bot.test_params module

class telegram_framework.tests.test_python_telegram_bot.test_params.TestParams(methodName='runTest')[source]

Bases: SimpleTestCase

test_get_param_call_handler()[source]

Test function get_param_call_handler: success

test_get_param_command_handler()[source]

Test function get_param_command_handler: success

test_get_param_command_handler_with_params()[source]

Test function get_param_command_handler: success Паттерн с параметром

Module contents