mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 09:18:08 +00:00
Fix vmware and interfaces tests
This commit is contained in:
parent
a461cb71c6
commit
c3eb6a440f
@ -45,7 +45,7 @@ def test_vm(project, manager, vm):
|
|||||||
|
|
||||||
|
|
||||||
def test_json(vm, tmpdir, project):
|
def test_json(vm, tmpdir, project):
|
||||||
assert vm.__json__()["vm_directory"] is None
|
assert vm.__json__()["vm_directory"] is not None
|
||||||
project._path = str(tmpdir)
|
project._path = str(tmpdir)
|
||||||
vm._linked_clone = True
|
vm._linked_clone = True
|
||||||
assert vm.__json__()["vm_directory"] is not None
|
assert vm.__json__()["vm_directory"] is not None
|
||||||
|
@ -33,4 +33,4 @@ def test_is_interface_up():
|
|||||||
assert is_interface_up("lo0") is True
|
assert is_interface_up("lo0") is True
|
||||||
else:
|
else:
|
||||||
assert is_interface_up("lo") is True
|
assert is_interface_up("lo") is True
|
||||||
assert is_interface_up("fake0") is False
|
assert is_interface_up("fake0") is False
|
||||||
|
Loading…
Reference in New Issue
Block a user