From dde2003168e32e435f66982b213294017472f6aa Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 5 Dec 2017 16:56:50 -0600 Subject: [PATCH] Fix tests. --- tests/controller/test_controller.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/controller/test_controller.py b/tests/controller/test_controller.py index ecdf1d59..dc8bdbaf 100644 --- a/tests/controller/test_controller.py +++ b/tests/controller/test_controller.py @@ -388,9 +388,10 @@ def test_start_vm(controller, async_run): "vmname": "GNS3 VM" } with asyncio_patch("gns3server.controller.gns3vm.vmware_gns3_vm.VMwareGNS3VM.start") as mock: - with asyncio_patch("gns3server.controller.compute.Compute.connect") as mock_connect: - async_run(controller.start()) - assert mock.called + with asyncio_patch("gns3server.controller.gns3vm.vmware_gns3_vm.VMwareGNS3VM._check_network") as mock_check_network: + with asyncio_patch("gns3server.controller.compute.Compute.connect") as mock_connect: + async_run(controller.start()) + assert mock.called assert "local" in controller.computes assert "vm" in controller.computes assert len(controller.computes) == 2 # Local compute and vm are created