Skip to content

Commit 2421099

Browse files
committed
formatting
1 parent 08d46ee commit 2421099

File tree

2 files changed

+12
-24
lines changed

2 files changed

+12
-24
lines changed

tests/integrations/celery/test_celery.py

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -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()

tests/integrations/django/asgi/test_asgi.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,7 @@ async def test_asgi_request_body(
566566
async def test_asgi_mixin_iscoroutinefunction_before_3_12():
567567
sentry_asgi_mixin = _asgi_middleware_mixin_factory(lambda: None)
568568

569-
async def get_response():
570-
...
569+
async def get_response(): ...
571570

572571
instance = sentry_asgi_mixin(get_response)
573572
assert asyncio.iscoroutinefunction(instance)
@@ -582,8 +581,7 @@ async def get_response():
582581
def test_asgi_mixin_iscoroutinefunction_when_not_async_before_3_12():
583582
sentry_asgi_mixin = _asgi_middleware_mixin_factory(lambda: None)
584583

585-
def get_response():
586-
...
584+
def get_response(): ...
587585

588586
instance = sentry_asgi_mixin(get_response)
589587
assert not asyncio.iscoroutinefunction(instance)

0 commit comments

Comments
 (0)