@@ -424,12 +424,14 @@ def test_upload_task_call_test_results(
424424 }
425425 ],
426426 report_code = None ,
427+ impl_type = "old" ,
427428 )
428429 kwargs = dict (
429430 repoid = commit .repoid ,
430431 commitid = commit .commitid ,
431432 commit_yaml = {"codecov" : {"max_report_age" : "1y ago" }},
432433 checkpoints_TestResultsFlow = None ,
434+ impl_type = "old" ,
433435 )
434436
435437 kwargs [_kwargs_key (TestResultsFlow )] = mocker .ANY
@@ -448,7 +450,7 @@ def test_upload_task_call_new_ta_tasks(
448450 celery_app ,
449451 ):
450452 chain = mocker .patch ("tasks.upload.chain" )
451- _ = mocker .patch ("tasks.upload.NEW_TA_TASKS.check_value" , return_value = True )
453+ _ = mocker .patch ("tasks.upload.NEW_TA_TASKS.check_value" , return_value = "both" )
452454 storage_path = "v4/raw/2019-05-22/C3C4715CA57C910D11D5EB899FC86A7E/4c4e4654ac25037ae869caeb3619d485970b6304/a84d445c-9c1e-434f-8275-f18f1f320f81.txt"
453455 redis_queue = [{"url" : storage_path , "build_code" : "some_random_build" }]
454456 jsonified_redis_queue = [json .dumps (x ) for x in redis_queue ]
@@ -533,37 +535,19 @@ def test_upload_task_call_new_ta_tasks(
533535 }
534536 ],
535537 report_code = None ,
538+ impl_type = "both" ,
536539 )
537540 kwargs = dict (
538541 repoid = commit .repoid ,
539542 commitid = commit .commitid ,
540543 commit_yaml = {"codecov" : {"max_report_age" : "1y ago" }},
541544 checkpoints_TestResultsFlow = None ,
542- )
543-
544- new_task = test_results_processor_task .s (
545- False ,
546- repoid = commit .repoid ,
547- commitid = commit .commitid ,
548- commit_yaml = {"codecov" : {"max_report_age" : "1y ago" }},
549- arguments_list = [
550- {
551- "url" : storage_path ,
552- "flags" : [],
553- "build_code" : "some_random_build" ,
554- "upload_id" : upload .id ,
555- "upload_pk" : upload .id ,
556- }
557- ],
558- report_code = None ,
559- new_impl = True ,
545+ impl_type = "both" ,
560546 )
561547
562548 kwargs [_kwargs_key (TestResultsFlow )] = mocker .ANY
563549 notify_sig = test_results_finisher_task .signature (kwargs = kwargs )
564- chain .assert_has_calls (
565- [call (processor_sig , notify_sig ), call (new_task )], any_order = True
566- )
550+ chain .assert_has_calls ([call (processor_sig , notify_sig )], any_order = True )
567551
568552 def test_upload_task_call_no_jobs (
569553 self ,
0 commit comments