From 826f6b2d57b114f61fc05ff3904fca1f53f25821 Mon Sep 17 00:00:00 2001 From: grossmj Date: Thu, 7 Mar 2019 17:17:07 +0700 Subject: [PATCH] Fix include images test. --- tests/handlers/api/controller/test_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/handlers/api/controller/test_project.py b/tests/handlers/api/controller/test_project.py index f7b011dc..6245558c 100644 --- a/tests/handlers/api/controller/test_project.py +++ b/tests/handlers/api/controller/test_project.py @@ -235,7 +235,7 @@ def test_export_with_images(http_controller, tmpdir, loop, project): json.dump(topology, f) with patch("gns3server.compute.Dynamips.get_images_directory", return_value=str(tmpdir / "IOS"),): - response = http_controller.get("/projects/{project_id}/export?include_images=1".format(project_id=project.id), raw=True) + response = http_controller.get("/projects/{project_id}/export?include_images=yes".format(project_id=project.id), raw=True) assert response.status == 200 assert response.headers['CONTENT-TYPE'] == 'application/gns3project' assert response.headers['CONTENT-DISPOSITION'] == 'attachment; filename="{}.gns3project"'.format(project.name)