Skip to content

Commit 0254756

Browse files
committed
django
1 parent e9cebce commit 0254756

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

scripts/populate_tox/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@
5454
"deps": {
5555
"*": [
5656
"psycopg2-binary",
57-
"pytest-asyncio",
5857
"djangorestframework",
5958
"pytest-django",
6059
"Werkzeug",
6160
],
6261
">=2.0": ["channels[daphne]"],
6362
">=2.2,<3.1": ["six"],
63+
">=3.0": ["pytest-asyncio"],
6464
"<3.3": [
6565
"djangorestframework>=3.0,<4.0",
6666
"Werkzeug<2.1.0",

tests/integrations/django/asgi/test_asgi.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
@pytest.mark.parametrize("application", APPS)
3131
@pytest.mark.asyncio
3232
@pytest.mark.forked
33+
@pytest.mark.skipif(
34+
django.VERSION < (3, 0), reason="Django ASGI support shipped in 3.0"
35+
)
3336
async def test_basic(sentry_init, capture_events, application):
3437
sentry_init(
3538
integrations=[DjangoIntegration()],
@@ -655,6 +658,9 @@ async def test_async_view(sentry_init, capture_events, application):
655658

656659
@pytest.mark.parametrize("application", APPS)
657660
@pytest.mark.asyncio
661+
@pytest.mark.skipif(
662+
django.VERSION < (3, 0), reason="Django ASGI support shipped in 3.0"
663+
)
658664
async def test_transaction_http_method_default(
659665
sentry_init, capture_events, application
660666
):
@@ -687,6 +693,9 @@ async def test_transaction_http_method_default(
687693

688694
@pytest.mark.parametrize("application", APPS)
689695
@pytest.mark.asyncio
696+
@pytest.mark.skipif(
697+
django.VERSION < (3, 0), reason="Django ASGI support shipped in 3.0"
698+
)
690699
async def test_transaction_http_method_custom(sentry_init, capture_events, application):
691700
sentry_init(
692701
integrations=[

tox.ini

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# The file (and all resulting CI YAMLs) then need to be regenerated via
1111
# "scripts/generate-test-files.sh".
1212
#
13-
# Last generated: 2025-06-03T06:27:35.661180+00:00
13+
# Last generated: 2025-06-03T11:56:46.072665+00:00
1414

1515
[tox]
1616
requires =
@@ -148,7 +148,7 @@ envlist =
148148
{py3.8,py3.10,py3.11}-huggingface_hub-v0.22.2
149149
{py3.8,py3.10,py3.11}-huggingface_hub-v0.25.2
150150
{py3.8,py3.12,py3.13}-huggingface_hub-v0.28.1
151-
{py3.8,py3.12,py3.13}-huggingface_hub-v0.32.3
151+
{py3.8,py3.12,py3.13}-huggingface_hub-v0.32.4
152152

153153

154154
# ~~~ DBs ~~~
@@ -518,7 +518,7 @@ deps =
518518
huggingface_hub-v0.22.2: huggingface_hub==0.22.2
519519
huggingface_hub-v0.25.2: huggingface_hub==0.25.2
520520
huggingface_hub-v0.28.1: huggingface_hub==0.28.1
521-
huggingface_hub-v0.32.3: huggingface_hub==0.32.3
521+
huggingface_hub-v0.32.4: huggingface_hub==0.32.4
522522

523523

524524
# ~~~ DBs ~~~
@@ -633,7 +633,6 @@ deps =
633633
django-v5.0.14: django==5.0.14
634634
django-v5.2.1: django==5.2.1
635635
django: psycopg2-binary
636-
django: pytest-asyncio
637636
django: djangorestframework
638637
django: pytest-django
639638
django: Werkzeug
@@ -643,6 +642,10 @@ deps =
643642
django-v5.0.14: channels[daphne]
644643
django-v5.2.1: channels[daphne]
645644
django-v2.2.28: six
645+
django-v3.2.25: pytest-asyncio
646+
django-v4.2.21: pytest-asyncio
647+
django-v5.0.14: pytest-asyncio
648+
django-v5.2.1: pytest-asyncio
646649
django-v1.11.29: djangorestframework>=3.0,<4.0
647650
django-v1.11.29: Werkzeug<2.1.0
648651
django-v2.2.28: djangorestframework>=3.0,<4.0

0 commit comments

Comments
 (0)