mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-01-31 05:13:49 +02:00
Small change in order to avoid a PEP8 warning
This commit is contained in:
parent
f97c2b2cbe
commit
9a0b260c56
@ -53,12 +53,12 @@ def test_vm_invalid_vboxmanage_path(project, manager):
|
|||||||
vm._find_vboxmanage()
|
vm._find_vboxmanage()
|
||||||
|
|
||||||
|
|
||||||
tmpfile = tempfile.NamedTemporaryFile()
|
|
||||||
@patch("gns3server.config.Config.get_section_config", return_value={"vboxmanage_path": tmpfile.name})
|
|
||||||
def test_vm_non_executable_vboxmanage_path(project, manager, loop):
|
def test_vm_non_executable_vboxmanage_path(project, manager, loop):
|
||||||
with pytest.raises(VirtualBoxError):
|
tmpfile = tempfile.NamedTemporaryFile()
|
||||||
vm = VirtualBoxVM("test", "00010203-0405-0607-0809-0a0b0c0d0e0e", project, manager, "test", False)
|
with patch("gns3server.config.Config.get_section_config", return_value={"vboxmanage_path": tmpfile.name}):
|
||||||
vm._find_vboxmanage()
|
with pytest.raises(VirtualBoxError):
|
||||||
|
vm = VirtualBoxVM("test", "00010203-0405-0607-0809-0a0b0c0d0e0e", project, manager, "test", False)
|
||||||
|
vm._find_vboxmanage()
|
||||||
|
|
||||||
|
|
||||||
def test_vm_valid_virtualbox_api_version(loop, project, manager):
|
def test_vm_valid_virtualbox_api_version(loop, project, manager):
|
||||||
|
Loading…
Reference in New Issue
Block a user