mirror of
https://github.com/django/daphne.git
synced 2025-04-21 09:12:03 +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():
|
||||
pass
|
||||
|
||||
|
||||
def consumer_2():
|
||||
pass
|
||||
|
||||
|
||||
def consumer_3():
|
||||
pass
|
||||
|
||||
|
||||
chatroom_routing = [
|
||||
route("websocket.connect", consumer_2, path=r"^/chat/(?P<room>[^/]+)/$"),
|
||||
route("websocket.connect", consumer_3, path=r"^/mentions/$"),
|
||||
|
@ -32,14 +35,6 @@ class RoutingTests(SimpleTestCase):
|
|||
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):
|
||||
"""
|
||||
Asserts that asking the `router` to route the `content` as a message
|
||||
|
|
Loading…
Reference in New Issue
Block a user