From e6831c25e27f8aeb3765752117398dc6bf3ec317 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Fri, 22 Jul 2016 13:24:44 +0200 Subject: [PATCH] Fix tests --- tests/controller/test_import_project.py | 3 +++ tests/handlers/api/controller/test_project.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/controller/test_import_project.py b/tests/controller/test_import_project.py index 316d7990f..712db14b1 100644 --- a/tests/controller/test_import_project.py +++ b/tests/controller/test_import_project.py @@ -68,6 +68,9 @@ def test_import_project(async_run, tmpdir, controller): def test_import_upgrade(async_run, tmpdir, controller): + """ + Topology made for previous GNS3 version are upgraded during the process + """ project_id = str(uuid.uuid4()) topology = { diff --git a/tests/handlers/api/controller/test_project.py b/tests/handlers/api/controller/test_project.py index 7f301a2a6..77edb2b6d 100644 --- a/tests/handlers/api/controller/test_project.py +++ b/tests/handlers/api/controller/test_project.py @@ -207,7 +207,7 @@ def test_write_file(http_controller, tmpdir, project): def test_import(http_controller, tmpdir, controller): with zipfile.ZipFile(str(tmpdir / "test.zip"), 'w') as myzip: - myzip.writestr("project.gns3", b'{"version": "2.0.0", "name": "test"}') + myzip.writestr("project.gns3", b'{"project_id": "c6992992-ac72-47dc-833b-54aa334bcd05", "version": "2.0.0", "name": "test"}') myzip.writestr("demo", b"hello") project_id = str(uuid.uuid4())