30
30
@pytest .mark .parametrize ("application" , APPS )
31
31
@pytest .mark .asyncio
32
32
@pytest .mark .forked
33
+ @pytest .mark .skipif (
34
+ django .VERSION < (3 , 0 ), reason = "Django ASGI support shipped in 3.0"
35
+ )
33
36
async def test_basic (sentry_init , capture_events , application ):
34
37
sentry_init (
35
38
integrations = [DjangoIntegration ()],
@@ -579,6 +582,9 @@ async def test_asgi_request_body(
579
582
"asyncio.iscoroutinefunction has been replaced in 3.12 by inspect.iscoroutinefunction"
580
583
),
581
584
)
585
+ @pytest .mark .skipif (
586
+ django .VERSION < (3 , 0 ), reason = "Django ASGI support shipped in 3.0"
587
+ )
582
588
async def test_asgi_mixin_iscoroutinefunction_before_3_12 ():
583
589
sentry_asgi_mixin = _asgi_middleware_mixin_factory (lambda : None )
584
590
@@ -636,6 +642,9 @@ def get_response(): ...
636
642
637
643
@pytest .mark .parametrize ("application" , APPS )
638
644
@pytest .mark .asyncio
645
+ @pytest .mark .skipif (
646
+ django .VERSION < (3 , 1 ), reason = "async views have been introduced in Django 3.1"
647
+ )
639
648
async def test_async_view (sentry_init , capture_events , application ):
640
649
sentry_init (
641
650
integrations = [DjangoIntegration ()],
@@ -655,6 +664,9 @@ async def test_async_view(sentry_init, capture_events, application):
655
664
656
665
@pytest .mark .parametrize ("application" , APPS )
657
666
@pytest .mark .asyncio
667
+ @pytest .mark .skipif (
668
+ django .VERSION < (3 , 0 ), reason = "Django ASGI support shipped in 3.0"
669
+ )
658
670
async def test_transaction_http_method_default (
659
671
sentry_init , capture_events , application
660
672
):
@@ -687,6 +699,9 @@ async def test_transaction_http_method_default(
687
699
688
700
@pytest .mark .parametrize ("application" , APPS )
689
701
@pytest .mark .asyncio
702
+ @pytest .mark .skipif (
703
+ django .VERSION < (3 , 0 ), reason = "Django ASGI support shipped in 3.0"
704
+ )
690
705
async def test_transaction_http_method_custom (sentry_init , capture_events , application ):
691
706
sentry_init (
692
707
integrations = [
0 commit comments