diff --git a/cms_helper.py b/cms_helper.py index 7a2b661..1643ff7 100755 --- a/cms_helper.py +++ b/cms_helper.py @@ -110,10 +110,12 @@ except ImportError: try: import knocker # pragma: no cover # NOQA HELPER_SETTINGS['INSTALLED_APPS'].append('knocker') + HELPER_SETTINGS['INSTALLED_APPS'].append('channels') + HELPER_SETTINGS['INSTALLED_APPS'].append('djangocms_blog.liveblog',) HELPER_SETTINGS['CHANNEL_LAYERS'] = { 'default': { 'BACKEND': 'asgiref.inmemory.ChannelLayer', - 'ROUTING': 'knocker.routing.channel_routing', + 'ROUTING': 'tests.test_utils.routing.channel_routing', }, } except ImportError: diff --git a/tests/test_utils/routing.py b/tests/test_utils/routing.py new file mode 100644 index 0000000..94188ea --- /dev/null +++ b/tests/test_utils/routing.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +from __future__ import absolute_import, print_function, unicode_literals + +from channels import include + +from djangocms_blog.liveblog.routing import channel_routing as djangocms_blog_routing +from knocker.routing import channel_routing as knocker_routing + +channel_routing = [ + include(djangocms_blog_routing, path=r'^/liveblog'), + include(knocker_routing, path=r'^/knocker'), +]