mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-24 15:58:08 +00:00
Fix create a node from a template test.
This commit is contained in:
parent
5754747a90
commit
4487e578bc
@ -961,7 +961,7 @@ def test_create_node_from_template(http_controller, controller, project, compute
|
|||||||
"default_name_format": "{name}-{0}",
|
"default_name_format": "{name}-{0}",
|
||||||
"compute_id": "example.com"
|
"compute_id": "example.com"
|
||||||
})}
|
})}
|
||||||
with asyncio_patch("gns3server.controller.project.Project.add_node_from_template") as mock:
|
with asyncio_patch("gns3server.controller.project.Project.add_node_from_template", return_value={"name": "test", "node_type": "qemu", "compute_id": "example.com"}) as mock:
|
||||||
response = http_controller.post("/projects/{}/templates/{}".format(project.id, id), {
|
response = http_controller.post("/projects/{}/templates/{}".format(project.id, id), {
|
||||||
"x": 42,
|
"x": 42,
|
||||||
"y": 12
|
"y": 12
|
||||||
|
Loading…
Reference in New Issue
Block a user