mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-24 02:05:48 -06:00
Format Python code with black
This commit is contained in:
@@ -8,14 +8,13 @@ from paperless.asgi import application
|
||||
|
||||
|
||||
TEST_CHANNEL_LAYERS = {
|
||||
'default': {
|
||||
'BACKEND': 'channels.layers.InMemoryChannelLayer',
|
||||
"default": {
|
||||
"BACKEND": "channels.layers.InMemoryChannelLayer",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
class TestWebSockets(TestCase):
|
||||
|
||||
@override_settings(CHANNEL_LAYERS=TEST_CHANNEL_LAYERS)
|
||||
async def test_no_auth(self):
|
||||
communicator = WebsocketCommunicator(application, "/ws/status/")
|
||||
@@ -43,15 +42,12 @@ class TestWebSockets(TestCase):
|
||||
connected, subprotocol = await communicator.connect()
|
||||
self.assertTrue(connected)
|
||||
|
||||
message = {
|
||||
"task_id": "test"
|
||||
}
|
||||
message = {"task_id": "test"}
|
||||
|
||||
channel_layer = get_channel_layer()
|
||||
await channel_layer.group_send("status_updates", {
|
||||
"type": "status_update",
|
||||
"data": message
|
||||
})
|
||||
await channel_layer.group_send(
|
||||
"status_updates", {"type": "status_update", "data": message}
|
||||
)
|
||||
|
||||
response = await communicator.receive_json_from()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user