Fix creation of link when reloading a project

Fix https://github.com/GNS3/gns3-gui/issues/1457
This commit is contained in:
Julien Duponchelle committed 2016-09-02 14:39:38 +02:00
1 parent 0afd7b78b7
commit 3ce3f925ae
8 files changed
+192 -107

No files matched your search

+2 -1
View File
@@ -60,7 +60,8 @@ def test_basic_topology(tmpdir, async_run, controller):
link = async_run(project.add_link())
async_run(link.add_node(node1, 0, 0))
async_run(link.add_node(node2, 0, 0))
with asyncio_patch("gns3server.controller.udp_link.UDPLink.create") as mock_udp_create:
async_run(link.add_node(node2, 0, 0))
drawing = async_run(project.add_drawing(svg="<svg></svg>"))