Do not recurse scan for images in standard image directory

Fix https://github.com/GNS3/gns3-gui/issues/1680
This commit is contained in:
Julien Duponchelle committed 2016-11-28 19:49:50 +01:00
1 parent a36fc37250
commit 49315adf79
11 files changed
+156 -135

No files matched your search

+1 -1
View File
@@ -355,7 +355,7 @@ def test_images(compute, async_run, images_dir):
"path": "linux.qcow2",
"md5sum": "d41d8cd98f00b204e9800998ecf8427e",
"filesize": 0}]).encode())
open(os.path.join(images_dir, "asa.qcow2"), "w+").close()
open(os.path.join(images_dir, "QEMU", "asa.qcow2"), "w+").close()
with asyncio_patch("aiohttp.ClientSession.request", return_value=response) as mock:
images = async_run(compute.images("qemu"))
mock.assert_called_with("GET", "https://example.com:84/v2/compute/qemu/images", auth=None, data=None, headers={'content-type': 'application/json'}, chunked=False, timeout=None)