mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-02 21:28:10 +00:00
Fix tests.
This commit is contained in:
parent
cfe8e9e85c
commit
dde2003168
@ -388,6 +388,7 @@ def test_start_vm(controller, async_run):
|
|||||||
"vmname": "GNS3 VM"
|
"vmname": "GNS3 VM"
|
||||||
}
|
}
|
||||||
with asyncio_patch("gns3server.controller.gns3vm.vmware_gns3_vm.VMwareGNS3VM.start") as mock:
|
with asyncio_patch("gns3server.controller.gns3vm.vmware_gns3_vm.VMwareGNS3VM.start") as mock:
|
||||||
|
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:
|
with asyncio_patch("gns3server.controller.compute.Compute.connect") as mock_connect:
|
||||||
async_run(controller.start())
|
async_run(controller.start())
|
||||||
assert mock.called
|
assert mock.called
|
||||||
|
Loading…
Reference in New Issue
Block a user