Skip to content

Commit 0beecc4

Browse files
committed
[deps] Install channels dependencies from openwisp-utils extras
1 parent 4881326 commit 0beecc4

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

requirements-test.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
pytest-django~=4.9.0
2-
pytest-asyncio~=0.24.0
31
pytest-cov~=5.0.0
4-
openwisp-utils[qa,selenium] @ https://github.com/openwisp/openwisp-utils/tarball/1.2
5-
channels_redis~=4.2.1
2+
openwisp-utils[qa,selenium,channels-test] @ https://github.com/openwisp/openwisp-utils/tarball/1.2
63
django_redis~=5.4.0
74
mock-ssh-server~=0.9.1
85
responses~=0.25.6

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ django-x509 @ https://github.com/openwisp/django-x509/tarball/1.3
66
django-loci @ https://github.com/openwisp/django-loci/tarball/1.2
77
django-flat-json-widget~=0.3.1
88
openwisp-users @ https://github.com/openwisp/openwisp-users/tarball/1.2
9-
openwisp-utils[celery] @ https://github.com/openwisp/openwisp-utils/tarball/1.2
10-
openwisp-notifications @ https://github.com/openwisp/openwisp-notifications/tarball/1.2
9+
openwisp-utils[celery,channels] @ https://github.com/openwisp/openwisp-utils/tarball/1.2
10+
openwisp-notifications @ https://github.com/openwisp/openwisp-notifications/tarball/deps-channels
1111
openwisp-ipam @ https://github.com/openwisp/openwisp-ipam/tarball/1.2
1212
djangorestframework-gis @ https://github.com/openwisp/django-rest-framework-gis/tarball/1.2
1313
paramiko[ed25519]~=3.5.1

tests/openwisp2/asgi.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
from channels.auth import AuthMiddlewareStack
22
from channels.routing import ProtocolTypeRouter, URLRouter
33
from channels.security.websocket import AllowedHostsOriginValidator
4+
from django.core.asgi import get_asgi_application
45

56
from openwisp_controller.routing import get_routes
67

78
application = ProtocolTypeRouter(
89
{
910
'websocket': AllowedHostsOriginValidator(
1011
AuthMiddlewareStack(URLRouter(get_routes()))
11-
)
12+
),
13+
'http': get_asgi_application(),
1214
}
1315
)

tests/openwisp2/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
SECRET_KEY = 'fn)t*+$)ugeyip6-#txyy$5wf2ervc0d2n#h)qb)y5@ly$t*@w'
2323

2424
INSTALLED_APPS = [
25+
'daphne',
2526
'django.contrib.auth',
2627
'django.contrib.contenttypes',
2728
'django.contrib.sessions',

0 commit comments

Comments
 (0)