The server has now 2 notification streams

* A new one for controller related events (compute, appliance templates etc.)
* The existing one for project related events (links, nodes etc.)
This commit is contained in:
grossmj committed 2018-08-16 21:31:57 +07:00
1 parent dac3ba19b7
commit 7f72b90b0e
364 files changed
+12364 -9923

No files matched your search

+2 -2
View File
@@ -75,7 +75,7 @@ def test_update(drawing, project, async_run, controller):
async_run(drawing.update(x=42, svg="<svg><rect></rect></svg>"))
assert drawing.x == 42
args, kwargs = controller._notification.emit.call_args
args, kwargs = controller._notification.project_emit.call_args
assert args[0] == "drawing.updated"
# JSON
assert args[1]["x"] == 42
@@ -83,7 +83,7 @@ def test_update(drawing, project, async_run, controller):
async_run(drawing.update(x=12, svg="<svg><rect></rect></svg>"))
assert drawing.x == 12
args, kwargs = controller._notification.emit.call_args
args, kwargs = controller._notification.project_emit.call_args
assert args[0] == "drawing.updated"
# JSON
assert args[1]["x"] == 12