mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-23 14:24:34 +02:00
Fix tests for Windows
This commit is contained in:
1 parent
1d4c3a164d
commit
e4b7e46444
13 files changed
+49
-47
No files matched your search
@@ -46,7 +46,7 @@ def dummy_gns3vm(controller, dummy_engine):
|
||||
return vm
|
||||
|
||||
|
||||
async def test_list(controller):
|
||||
async def test_list(loop, controller):
|
||||
|
||||
vm = GNS3VM(controller)
|
||||
with asyncio_patch("gns3server.controller.gns3vm.vmware_gns3_vm.VMwareGNS3VM.list", return_value=[{"vmname": "test", "vmx_path": "test"}]):
|
||||
@@ -59,7 +59,7 @@ async def test_list(controller):
|
||||
await vm.list("hyperv")
|
||||
|
||||
|
||||
def test_json(controller):
|
||||
async def test_json(controller):
|
||||
|
||||
vm = GNS3VM(controller)
|
||||
assert vm.__json__() == vm._settings
|
||||
|
||||
Reference in new issue
Block a user