Skip to content

Commit 9f89cb6

Browse files
committed
fix: Fix tests under Channels 3
1 parent c359291 commit 9f89cb6

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from channels.http import AsgiHandler
22
from channels.routing import ProtocolTypeRouter
33

4-
application = ProtocolTypeRouter({"http": AsgiHandler})
4+
application = ProtocolTypeRouter({"http": AsgiHandler()})

tox.ini

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ deps =
9494

9595
django-{1.11,2.0,2.1,2.2,3.0,3.1,dev}: djangorestframework>=3.0.0,<4.0.0
9696

97-
; TODO: right now channels 3 is crashing tests/integrations/django/asgi/test_asgi.py
98-
; see https://github.com/django/channels/issues/1549
99-
{py3.7,py3.8,py3.9}-django-{1.11,2.0,2.1,2.2,3.0,3.1,dev}: channels>2,<3
97+
{py3.7,py3.8,py3.9}-django-{1.11,2.0,2.1,2.2,3.0,3.1,dev}
10098
{py3.7,py3.8,py3.9}-django-{1.11,2.0,2.1,2.2,3.0,3.1,dev}: pytest-asyncio==0.10.0
10199
{py2.7,py3.7,py3.8,py3.9}-django-{1.11,2.2,3.0,3.1,dev}: psycopg2-binary
102100

0 commit comments

Comments
 (0)