mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
New Dynamips integration part 3
This commit is contained in:
1 parent
37945585b9
commit
79a57ca420
51 files changed
+1257
-2386
No files matched your search
@@ -31,13 +31,13 @@ def manager(port_manager):
|
||||
return m
|
||||
|
||||
|
||||
@patch("gns3server.config.Config.get_section_config", return_value={"vboxmanage_path": "/bin/test_fake"})
|
||||
def test_vm_invalid_vboxmanage_path(project, manager):
|
||||
with pytest.raises(VirtualBoxError):
|
||||
manager.find_vboxmanage()
|
||||
def test_vm_invalid_vboxmanage_path(manager):
|
||||
with patch("gns3server.config.Config.get_section_config", return_value={"vboxmanage_path": "/bin/test_fake"}):
|
||||
with pytest.raises(VirtualBoxError):
|
||||
manager.find_vboxmanage()
|
||||
|
||||
|
||||
def test_vm_non_executable_vboxmanage_path(project, manager):
|
||||
def test_vm_non_executable_vboxmanage_path(manager):
|
||||
tmpfile = tempfile.NamedTemporaryFile()
|
||||
with patch("gns3server.config.Config.get_section_config", return_value={"vboxmanage_path": tmpfile.name}):
|
||||
with pytest.raises(VirtualBoxError):
|
||||
|
||||
Reference in new issue
Block a user