@@ -597,8 +597,7 @@ def test_messaging_destination_name_default_exchange(
597597 mock_request .delivery_info = {"routing_key" : routing_key , "exchange" : "" }
598598
599599 @celery_app .task ()
600- def task ():
601- ...
600+ def task (): ...
602601
603602 task .apply_async ()
604603
@@ -622,8 +621,7 @@ def test_messaging_destination_name_nondefault_exchange(
622621 mock_request .delivery_info = {"routing_key" : "celery" , "exchange" : "custom" }
623622
624623 @celery_app .task ()
625- def task ():
626- ...
624+ def task (): ...
627625
628626 task .apply_async ()
629627
@@ -637,8 +635,7 @@ def test_messaging_id(init_celery, capture_events):
637635 events = capture_events ()
638636
639637 @celery .task
640- def example_task ():
641- ...
638+ def example_task (): ...
642639
643640 example_task .apply_async ()
644641
@@ -652,8 +649,7 @@ def test_retry_count_zero(init_celery, capture_events):
652649 events = capture_events ()
653650
654651 @celery .task ()
655- def task ():
656- ...
652+ def task (): ...
657653
658654 task .apply_async ()
659655
@@ -670,8 +666,7 @@ def test_retry_count_nonzero(mock_request, init_celery, capture_events):
670666 events = capture_events ()
671667
672668 @celery .task ()
673- def task ():
674- ...
669+ def task (): ...
675670
676671 task .apply_async ()
677672
@@ -689,8 +684,7 @@ def test_messaging_system(system, init_celery, capture_events):
689684 celery .conf .broker_url = f"{ system } ://example.com" # noqa: E231
690685
691686 @celery .task ()
692- def task ():
693- ...
687+ def task (): ...
694688
695689 task .apply_async ()
696690
@@ -713,8 +707,7 @@ def publish(*args, **kwargs):
713707 events = capture_events ()
714708
715709 @celery .task ()
716- def task ():
717- ...
710+ def task (): ...
718711
719712 with start_transaction ():
720713 task .apply_async ()
@@ -736,8 +729,7 @@ def test_receive_latency(init_celery, capture_events):
736729 events = capture_events ()
737730
738731 @celery .task ()
739- def task ():
740- ...
732+ def task (): ...
741733
742734 task .apply_async ()
743735
@@ -754,8 +746,7 @@ def tests_span_origin_consumer(init_celery, capture_events):
754746 events = capture_events ()
755747
756748 @celery .task ()
757- def task ():
758- ...
749+ def task (): ...
759750
760751 task .apply_async ()
761752
@@ -779,8 +770,7 @@ def publish(*args, **kwargs):
779770 events = capture_events ()
780771
781772 @celery .task ()
782- def task ():
783- ...
773+ def task (): ...
784774
785775 with start_transaction (name = "custom_transaction" ):
786776 task .apply_async ()
0 commit comments