Module Expr Str Import alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Num keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Num keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Num keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Str Num Str Str Num Expr Call AttributeLoad NameLoad attr Str Num Str Str Num Expr Call AttributeLoad NameLoad attr Str Num Str Str Num decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Return NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assert CompareEq Call AttributeLoad NameLoad attr Num ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assert CompareEq Call NameLoad NameLoad Num Assert CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assert CompareEq Call NameLoad NameLoad Num Assert CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad Assert CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assert CompareEq NameLoad ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Num ListLoad Assign NameStore Call AttributeLoad NameLoad attr Num Assert CompareEq Call NameLoad NameLoad Num Assert CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr Num Assert CompareEq Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Call NameLoad ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Assert CompareEq Call NameLoad NameLoad Num Assert CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr Num Assert CompareEq Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Call NameLoad ListLoad Num decorator_list
N/A N/A 
The MIT License (MIT)
Copyright (c) 2016 Nordeus LLC

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 N/A pytest pushkin.request.event_handlers EventHandler EventHandlerManager pushkin.database database EventHandlerA1 N/A EventHandler N/A __init__ N/A N/A self N/A N/A N/A N/A N/A EventHandler __init__ self 1 N/A handle_event N/A N/A self event_request N/A N/A N/A N/A N/A EventHandlerB1 N/A EventHandler N/A __init__ N/A N/A self N/A N/A N/A N/A N/A EventHandler __init__ self 1 N/A handle_event N/A N/A self event_request N/A N/A N/A N/A N/A EventHandlerA2 N/A EventHandler N/A __init__ N/A N/A self N/A N/A N/A N/A N/A EventHandler __init__ self 2 N/A handle_event N/A N/A self event_request N/A N/A N/A N/A N/A mock_log N/A N/A mocker N/A N/A N/A N/A N/A mocker patch pushkin.context.main_logger N/A N/A pytest fixture setup N/A N/A mock_log N/A N/A N/A 
    Runs setup before and clean up after a test which use this fixture
     N/A N/A N/A database create_database N/A N/A prepare_demodata N/A N/A pytest fixture prepare_demodata N/A N/A N/A N/A N/A N/A N/A database process_user_login login_id 1 language_id 1 platform_id 2 device_id did1 device_token dtoken1 application_version 200 N/A N/A N/A database process_user_login login_id 2 language_id 1 platform_id 2 device_id did2 device_token dtoken2 application_version 200 N/A N/A N/A database process_user_login login_id 3 language_id 1 platform_id 2 device_id did3 device_token dtoken3 application_version 200 N/A N/A N/A database add_message msg1 1 title text 1 N/A N/A N/A database add_message msg2 1 title text 1 N/A N/A N/A database add_message msg3 1 title text 2 N/A manager N/A N/A N/A N/A N/A manager N/A EventHandlerManager N/A N/A N/A N/A manager _event_handler_map clear N/A N/A N/A manager _add_event_handler N/A EventHandlerA1 N/A N/A N/A manager _add_event_handler N/A EventHandlerB1 N/A N/A N/A manager _add_event_handler N/A EventHandlerA2 N/A manager N/A N/A pytest fixture test_non_handled_event N/A N/A setup manager N/A N/A N/A Test that empty list is returned for non handled events. N/A N/A N/A N/A manager get_handlers 3 N/A N/A test_handled_event_one_handler N/A N/A setup manager N/A N/A N/A Test that handler is returned for events with one handler N/A handlers N/A N/A manager get_handlers 2 N/A N/A N/A len handlers 1 N/A N/A N/A N/A handlers N/A 0 __class__ EventHandlerA2 N/A test_handled_event_multiple_handlers N/A N/A setup manager N/A N/A N/A Test that all handlers are returned for events with multiple handlers. N/A handlers N/A N/A manager get_handlers 1 N/A N/A N/A len handlers 2 N/A N/A N/A N/A handlers N/A 0 __class__ EventHandlerA1 N/A N/A N/A N/A handlers N/A 1 __class__ EventHandlerB1 N/A test_event_ids N/A N/A setup manager N/A N/A N/A Test that correct event ids are returned. N/A event_ids N/A N/A manager get_event_ids N/A N/A event_ids N/A 1 2 N/A test_event_manager_event_mapping_handlers N/A N/A setup N/A N/A N/A Test of event mapping handlers are properly created according to data in db. N/A manager N/A EventHandlerManager N/A N/A N/A N/A manager get_handlers 0 N/A N/A handlers_1 N/A N/A manager get_handlers 1 N/A N/A N/A len handlers_1 1 N/A N/A N/A N/A handlers_1 N/A 0 event_id 1 N/A N/A N/A set N/A N/A handlers_1 N/A 0 message_ids N/A set N/A 1 2 N/A handlers_2 N/A N/A manager get_handlers 2 N/A N/A N/A len handlers_2 1 N/A N/A N/A N/A handlers_2 N/A 0 event_id 2 N/A N/A N/A set N/A N/A handlers_2 N/A 0 message_ids N/A set N/A 3 N/A