mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-31 05:13:49 +02:00
Fix tests
This commit is contained in:
parent
fc5afa6676
commit
bfe9c117ba
@ -27,7 +27,7 @@ from tests.utils import asyncio_patch
|
|||||||
def test_get_qemu_version(loop):
|
def test_get_qemu_version(loop):
|
||||||
|
|
||||||
with asyncio_patch("gns3server.modules.qemu.subprocess_check_output", return_value="QEMU emulator version 2.2.0, Copyright (c) 2003-2008 Fabrice Bellard") as mock:
|
with asyncio_patch("gns3server.modules.qemu.subprocess_check_output", return_value="QEMU emulator version 2.2.0, Copyright (c) 2003-2008 Fabrice Bellard") as mock:
|
||||||
version = loop.run_until_complete(asyncio.async(Qemu._get_qemu_version("/tmp/qemu-test")))
|
version = loop.run_until_complete(asyncio.async(Qemu.get_qemu_version("/tmp/qemu-test")))
|
||||||
if sys.platform.startswith("win"):
|
if sys.platform.startswith("win"):
|
||||||
assert version == ""
|
assert version == ""
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user