Module Import alias Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults kwarg body Pass decorator_list NameLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assert Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpSub Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword Num Assign NameStore Call NameLoad NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore BinOpSub Call NameLoad NameLoad Assert CompareEq SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Index Num Str Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Index Num Assign NameStore Num Assert BoolOpAnd CompareGtE NameLoad BinOpSub NameLoad NameLoad CompareLtE NameLoad BinOpAdd NameLoad NameLoad Assert Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Index Num attr Str Assert Call AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Index Num attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr Assert UnaryOpNot AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list
N/A N/A datetime N/A unittest datetime timedelta N/A mock olympia.amo.celery task olympia.amo.utils utc_millesecs_from_epoch fake_task N/A N/A N/A kw N/A N/A N/A task TestTaskTiming N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A patch N/A N/A mock patch olympia.amo.celery.cache N/A N/A self cache N/A N/A patch start N/A N/A N/A self addCleanup N/A patch stop N/A patch N/A N/A mock patch olympia.amo.celery.statsd N/A N/A self statsd N/A N/A patch start N/A N/A N/A self addCleanup N/A patch stop N/A test_cache_start_time N/A N/A self N/A N/A N/A N/A N/A fake_task delay N/A N/A N/A N/A N/A N/A N/A N/A self cache set call_args N/A 0 N/A 0 startswith task_start_time N/A test_track_run_time N/A N/A self N/A N/A N/A minute_ago N/A N/A N/A N/A datetime datetime now N/A timedelta minutes 1 N/A task_start N/A utc_millesecs_from_epoch minute_ago N/A N/A N/A N/A self cache get return_value task_start N/A N/A N/A fake_task delay N/A approx_run_time N/A N/A utc_millesecs_from_epoch task_start N/A N/A N/A N/A N/A N/A N/A self statsd timing call_args N/A 0 N/A 0 tasks.olympia.amo.tests.test_celery.fake_task N/A actual_run_time N/A N/A N/A N/A N/A self statsd timing call_args N/A 0 N/A 1 N/A fuzz 2000 N/A N/A N/A actual_run_time N/A approx_run_time fuzz N/A actual_run_time N/A approx_run_time fuzz N/A N/A N/A N/A N/A N/A N/A N/A self cache get call_args N/A 0 N/A 0 startswith task_start_time N/A N/A N/A N/A N/A N/A N/A N/A self cache delete call_args N/A 0 N/A 0 startswith task_start_time N/A test_handle_cache_miss_for_stats N/A N/A self N/A N/A N/A N/A N/A N/A self cache get return_value None N/A N/A N/A fake_task delay N/A N/A N/A N/A N/A self statsd timing called N/A N/A