mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-19 12:45:19 +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
@@ -363,12 +363,12 @@ def test_update_only_controller(node, controller, compute, project, async_run):
|
||||
async_run(node.update(x=42))
|
||||
assert not compute.put.called
|
||||
assert node.x == 42
|
||||
controller._notification.emit.assert_called_with("node.updated", node.__json__())
|
||||
controller._notification.project_emit.assert_called_with("node.updated", node.__json__())
|
||||
|
||||
# If nothing change a second notif should not be send
|
||||
controller._notification = AsyncioMagicMock()
|
||||
async_run(node.update(x=42))
|
||||
assert not controller._notification.emit.called
|
||||
assert not controller._notification.project_emit.called
|
||||
|
||||
|
||||
def test_update_no_changes(node, compute, project, async_run):
|
||||
|
||||
Reference in new issue
Block a user