Module Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str ImportFrom alias Assign AttributeStore NameLoad attr Num Assign NameStore Dict Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str ImportFrom alias Assign AttributeStore NameLoad attr Num Assign NameStore Dict Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str ImportFrom alias Assign AttributeStore NameLoad attr Num Assign NameStore Dict Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list Call NameLoad Str Call NameLoad Str
N/A N/A unittest mock patch TestLogTaskInfo N/A N/A unittest TestCase N/A N/A Ensure that _log_task_info works as expected. test_all_headers N/A N/A self debug_mock time_mock N/A N/A N/A Ensure _log_task_info produces the correct logs. furious handlers N/A N/A time_mock return_value 1.5 N/A headers N/A X-Appengine-Taskretrycount X-Appengine-Taskexecutioncount X-Appengine-Tasketa blue yellow 0.50 N/A N/A N/A handlers _log_task_info headers N/A expected_logs {"ran": 1.5, "retry_count": "blue", "gae_latency_seconds": 1.0, "task_eta": 0.5, "execution_count": "yellow"} N/A N/A N/A debug_mock assert_called_with TASK-INFO: %s expected_logs N/A test_no_headers N/A N/A self debug_mock time_mock N/A N/A N/A Ensure _log_task_info produces the correct logs. furious handlers N/A N/A time_mock return_value 1.5 N/A headers N/A N/A N/A N/A handlers _log_task_info headers N/A expected_logs {"ran": 1.5, "retry_count": "", "gae_latency_seconds": 1.5, "task_eta": 0.0, "execution_count": ""} N/A N/A N/A debug_mock assert_called_with TASK-INFO: %s expected_logs N/A test_ignore_extra_headers N/A N/A self debug_mock time_mock N/A N/A N/A Ensure _log_task_info ignores extra items in the header furious handlers N/A N/A time_mock return_value 1.5 N/A headers N/A something-something X-Appengine-Taskretrycount X-Appengine-Taskexecutioncount X-Appengine-Tasketa please-ignore-me blue yellow 0.50 N/A N/A N/A handlers _log_task_info headers N/A expected_logs {"ran": 1.5, "retry_count": "blue", "gae_latency_seconds": 1.0, "task_eta": 0.5, "execution_count": "yellow"} N/A N/A N/A debug_mock assert_called_with TASK-INFO: %s expected_logs N/A N/A N/A patch time.time N/A patch logging.debug