From fd03b36258f287923690ea94f5dbd8faec244043 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 24 Feb 2015 10:07:22 +0100 Subject: [PATCH] Fix tests --- tests/handlers/test_upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/handlers/test_upload.py b/tests/handlers/test_upload.py index 65869b4f..cec27948 100644 --- a/tests/handlers/test_upload.py +++ b/tests/handlers/test_upload.py @@ -38,7 +38,7 @@ def test_upload(server, tmpdir): body = aiohttp.FormData() body.add_field("file", open(str(tmpdir / "test"), "rb"), content_type="application/iou", filename="test2") - with patch("gns3server.config.Config.get_section_config", return_value={"image_directory": str(tmpdir)}): + with patch("gns3server.config.Config.get_section_config", return_value={"images_path": str(tmpdir)}): response = server.post('/upload', api_version=None, body=body, raw=True) with open(str(tmpdir / "test2")) as f: