File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
tests/integrations/django/asgi Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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+ )
585588async 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+ )
642648async def test_async_view (sentry_init , capture_events , application ):
643649 sentry_init (
644650 integrations = [DjangoIntegration ()],
You can’t perform that action at this time.
0 commit comments