mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-16 16:54:51 +02:00
Fix test create image with not supported characters by filesystem. Fixes #2375
This commit is contained in:
parent
081447ba2e
commit
c076275bd0
@ -195,6 +195,7 @@ async def test_create_image_with_not_supported_characters_by_filesystem(tmpdir,
|
|||||||
|
|
||||||
# patching os.makedirs is necessary as it depends on already mocked os.path.exists
|
# patching os.makedirs is necessary as it depends on already mocked os.path.exists
|
||||||
with asyncio_patch("asyncio.create_subprocess_exec", return_value=MagicMock()) as process, \
|
with asyncio_patch("asyncio.create_subprocess_exec", return_value=MagicMock()) as process, \
|
||||||
|
patch("gns3server.compute.qemu.Qemu._init_config_disk", return_value=MagicMock()), \
|
||||||
patch("gns3server.compute.qemu.Qemu.get_images_directory", return_value=str(tmpdir)), \
|
patch("gns3server.compute.qemu.Qemu.get_images_directory", return_value=str(tmpdir)), \
|
||||||
patch("os.path.exists", side_effect=UnicodeEncodeError('error', u"", 1, 2, 'Emulated Unicode Err')),\
|
patch("os.path.exists", side_effect=UnicodeEncodeError('error', u"", 1, 2, 'Emulated Unicode Err')),\
|
||||||
patch("os.makedirs"):
|
patch("os.makedirs"):
|
||||||
|
Loading…
Reference in New Issue
Block a user