Skip to content

Commit 9f90e50

Browse files
committed
django
1 parent 6c549dd commit 9f90e50

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/integrations/django/asgi/test_asgi.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,9 @@ async def test_asgi_request_body(
582582
"asyncio.iscoroutinefunction has been replaced in 3.12 by inspect.iscoroutinefunction"
583583
),
584584
)
585+
@pytest.mark.skipif(
586+
django.VERSION < (3, 0), reason="Django ASGI support shipped in 3.0"
587+
)
585588
async def test_asgi_mixin_iscoroutinefunction_before_3_12():
586589
sentry_asgi_mixin = _asgi_middleware_mixin_factory(lambda: None)
587590

@@ -639,6 +642,9 @@ def get_response(): ...
639642

640643
@pytest.mark.parametrize("application", APPS)
641644
@pytest.mark.asyncio
645+
@pytest.mark.skipif(
646+
django.VERSION < (3, 1), reason="async views have been introduced in Django 3.1"
647+
)
642648
async def test_async_view(sentry_init, capture_events, application):
643649
sentry_init(
644650
integrations=[DjangoIntegration()],

0 commit comments

Comments
 (0)