Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Dict Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Dict keyword Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword ListLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword Str keyword ListLoad AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A logging N/A mock N/A time django.core mail rest_framework test nodeconductor.logging models logging_models nodeconductor.logging.log HookHandler nodeconductor.logging.tasks process_event nodeconductor.structure models structure_models nodeconductor.structure.log event_logger nodeconductor.structure.tests factories structure_factories TestHookService N/A N/A test APITransactionTestCase N/A setUp N/A N/A self N/A N/A N/A N/A self owner N/A N/A structure_factories UserFactory N/A N/A self customer N/A N/A structure_factories CustomerFactory N/A N/A N/A N/A self customer add_user N/A self owner N/A N/A structure_models CustomerRole OWNER N/A N/A self other_user N/A N/A structure_factories UserFactory N/A N/A self event_type customer_update_succeeded N/A N/A self other_event customer_deletion_succeeded N/A N/A self message Customer {customer_name} has been updated. N/A N/A self event N/A message type context timestamp N/A self message N/A self event_type N/A N/A N/A event_logger customer compile_context customer N/A self customer N/A N/A time time N/A N/A self other_hook N/A N/A N/A N/A logging_models EmailHook objects create user N/A self other_user email N/A N/A self owner email event_types N/A N/A self event_type N/A test_logger_handler_sends_task_if_handler_attached N/A N/A self mocked_task N/A N/A N/A logger N/A N/A logging getLogger nodeconductor N/A N/A N/A logger setLevel N/A logging DEBUG N/A handler N/A HookHandler N/A N/A N/A logger addHandler handler N/A N/A N/A N/A event_logger customer warning N/A self message event_type N/A self event_type event_context N/A customer N/A self customer N/A N/A N/A mocked_task assert_called_once_with nodeconductor.logging.process_event N/A mock ANY N/A countdown 2 N/A N/A N/A mocked_task reset_mock N/A N/A N/A logger removeHandler handler N/A N/A N/A N/A event_logger customer warning N/A self message event_type N/A self event_type event_context N/A customer N/A self customer N/A N/A N/A self assertFalse N/A mocked_task called N/A N/A N/A mock patch celery.app.base.Celery.send_task test_email_hook_filters_events_by_user_and_event_type N/A N/A self N/A N/A N/A email_hook N/A N/A N/A N/A logging_models EmailHook objects create user N/A self owner email N/A N/A self owner email event_types N/A N/A self event_type N/A N/A process_event N/A self event N/A N/A N/A self assertEqual N/A len N/A mail outbox 1 N/A N/A N/A self assertEqual N/A N/A N/A mail outbox N/A 0 to N/A N/A email_hook email N/A test_webhook_makes_post_request_against_destination_url N/A N/A self requests_post N/A N/A N/A N/A self web_hook N/A N/A N/A N/A logging_models WebHook objects create user N/A self owner destination_url http://example.com/ event_types N/A N/A self event_type N/A N/A process_event N/A self event N/A N/A N/A requests_post assert_called_once_with N/A N/A self web_hook destination_url json N/A mock ANY verify False N/A N/A N/A mock patch requests.post N/A