mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-23 14:24:34 +02:00
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:
1 parent
dac3ba19b7
commit
7f72b90b0e
364 files changed
+12364
-9923
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user