Skip to content

Commit

Permalink
Fix test create image with not supported characters by filesystem. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed May 9, 2024
1 parent 081447b commit c076275
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/compute/qemu/test_qemu_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
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("os.path.exists", side_effect=UnicodeEncodeError('error', u"", 1, 2, 'Emulated Unicode Err')),\
patch("os.makedirs"):
Expand Down

0 comments on commit c076275

Please sign in to comment.