1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00

Fix dynamips tests

This commit is contained in:
Julien Duponchelle 2015-07-03 10:47:30 +02:00
parent 1f116fc992
commit e93f1330b8

View File

@ -150,6 +150,7 @@ def fake_file(tmpdir):
os.chmod(path, stat.S_IREAD) os.chmod(path, stat.S_IREAD)
return path return path
def test_vms(server, tmpdir, fake_dynamips, fake_file): def test_vms(server, tmpdir, fake_dynamips, fake_file):
with patch("gns3server.modules.Dynamips.get_images_directory", return_value=str(tmpdir), example=True): with patch("gns3server.modules.Dynamips.get_images_directory", return_value=str(tmpdir), example=True):