mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 06:21:15 +02:00
refactor: ruff autofixes
This commit is contained in:
455 files changed
+12322
-14762
No files matched your search
@@ -27,16 +27,16 @@ from gns3server.compute.notification_manager import NotificationManager
|
||||
# # FIXME: how to test websockets
|
||||
# pass
|
||||
|
||||
#with compute_api.ws("/notifications/ws") as ws:
|
||||
# with compute_api.ws("/notifications/ws") as ws:
|
||||
|
||||
# answer = await ws.receive_text()
|
||||
# print(answer)
|
||||
# answer = json.loads(answer)
|
||||
#
|
||||
# assert answer["action"] == "ping"
|
||||
#
|
||||
# NotificationManager.instance().emit("test", {})
|
||||
#
|
||||
# answer = await ws.receive_text()
|
||||
# answer = json.loads(answer)
|
||||
# assert answer["action"] == "test"
|
||||
# answer = await ws.receive_text()
|
||||
# print(answer)
|
||||
# answer = json.loads(answer)
|
||||
#
|
||||
# assert answer["action"] == "ping"
|
||||
#
|
||||
# NotificationManager.instance().emit("test", {})
|
||||
#
|
||||
# answer = await ws.receive_text()
|
||||
# answer = json.loads(answer)
|
||||
# assert answer["action"] == "test"
|
||||
Reference in new issue
Block a user