mirror of
https://github.com/django/daphne.git
synced 2025-07-10 16:02:18 +03:00
Make flake8 more happy
This commit is contained in:
parent
3cdf51ed84
commit
4f8b297462
|
@ -10,12 +10,15 @@ from channels.utils import name_that_thing
|
||||||
def consumer_1():
|
def consumer_1():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def consumer_2():
|
def consumer_2():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def consumer_3():
|
def consumer_3():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
chatroom_routing = [
|
chatroom_routing = [
|
||||||
route("websocket.connect", consumer_2, path=r"^/chat/(?P<room>[^/]+)/$"),
|
route("websocket.connect", consumer_2, path=r"^/chat/(?P<room>[^/]+)/$"),
|
||||||
route("websocket.connect", consumer_3, path=r"^/mentions/$"),
|
route("websocket.connect", consumer_3, path=r"^/mentions/$"),
|
||||||
|
@ -32,14 +35,6 @@ class RoutingTests(SimpleTestCase):
|
||||||
Tests that the router's routing code works correctly.
|
Tests that the router's routing code works correctly.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Fake consumers we can test for with the == operator
|
|
||||||
def consumer_1(self):
|
|
||||||
pass
|
|
||||||
def consumer_2(self):
|
|
||||||
pass
|
|
||||||
def consumer_3(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def assertRoute(self, router, channel, content, consumer, kwargs=None):
|
def assertRoute(self, router, channel, content, consumer, kwargs=None):
|
||||||
"""
|
"""
|
||||||
Asserts that asking the `router` to route the `content` as a message
|
Asserts that asking the `router` to route the `content` as a message
|
||||||
|
|
Loading…
Reference in New Issue
Block a user