mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
2 files changed
+8
-2
No files matched your search
+3
-2
@@ -322,5 +322,6 @@ def on_gns3vm():
|
||||
"""
|
||||
Mock the hostname to emulate the GNS3 VM
|
||||
"""
|
||||
with patch("socket.gethostname", return_value="gns3vm"):
|
||||
yield
|
||||
with patch("gns3server.utils.interfaces.interfaces", return_value=[{"name": "eth0"}, {"name": "eth1"}]):
|
||||
with patch("socket.gethostname", return_value="gns3vm"):
|
||||
yield
|
||||
Reference in new issue
Block a user