mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Raise error if server received windows path
This commit is contained in:
1 parent
58e7fa2f01
commit
5b347fe48f
2 files changed
+10
-2
No files matched your search
@@ -117,8 +117,8 @@ def test_get_abs_image_path_non_local(qemu, tmpdir):
|
||||
assert qemu.get_abs_image_path(path1) == path1
|
||||
with pytest.raises(VMError):
|
||||
qemu.get_abs_image_path(path2)
|
||||
# with pytest.raises(VMError):
|
||||
# qemu.get_abs_image_path("C:\\test2.bin")
|
||||
with pytest.raises(VMError):
|
||||
qemu.get_abs_image_path("C:\\test2.bin")
|
||||
|
||||
with patch("gns3server.config.Config.get_section_config", return_value={"images_path": str(tmpdir / "images"), "local": True}):
|
||||
assert qemu.get_abs_image_path(path2) == path2
|
||||
|
||||
Reference in new issue
Block a user