|
|
|
@ -67,6 +67,8 @@ def test_json(node, compute):
|
|
|
|
|
"x": node.x,
|
|
|
|
|
"y": node.y,
|
|
|
|
|
"z": node.z,
|
|
|
|
|
"width": node.width,
|
|
|
|
|
"height": node.height,
|
|
|
|
|
"symbol": node.symbol,
|
|
|
|
|
"label": node.label
|
|
|
|
|
}
|
|
|
|
@ -81,6 +83,8 @@ def test_json(node, compute):
|
|
|
|
|
"x": node.x,
|
|
|
|
|
"y": node.y,
|
|
|
|
|
"z": node.z,
|
|
|
|
|
"width": node.width,
|
|
|
|
|
"height": node.height,
|
|
|
|
|
"symbol": node.symbol,
|
|
|
|
|
"label": node.label
|
|
|
|
|
}
|
|
|
|
@ -186,7 +190,6 @@ def test_update_properties(node, compute, project, async_run, controller):
|
|
|
|
|
controller._notification.emit.assert_called_with("node.updated", node_notif)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_update_only_controller(node, controller, compute, project, async_run):
|
|
|
|
|
"""
|
|
|
|
|
When updating property used only on controller we don't need to
|
|
|
|
@ -206,7 +209,6 @@ def test_update_only_controller(node, controller, compute, project, async_run):
|
|
|
|
|
assert not controller._notification.emit.called
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_update_no_changes(node, compute, project, async_run):
|
|
|
|
|
"""
|
|
|
|
|
We don't call the compute node if all compute properties has not changed
|
|
|
|
|