From 5a86277a9f20e35e7851a4c847802fa4b911dfee Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 23 May 2017 16:08:30 +0200 Subject: [PATCH] Test that import erase the auto_open and auto_start setting Ref #1041 --- tests/controller/test_import_project.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/controller/test_import_project.py b/tests/controller/test_import_project.py index e61e1ed8..7e03ea28 100644 --- a/tests/controller/test_import_project.py +++ b/tests/controller/test_import_project.py @@ -35,6 +35,8 @@ def test_import_project(async_run, tmpdir, controller): topology = { "project_id": str(uuid.uuid4()), "name": "test", + "auto_open": True, + "auto_start": True, "topology": { }, "version": "2.0.0" @@ -67,6 +69,8 @@ def test_import_project(async_run, tmpdir, controller): # A new project name is generated when you import twice the same name with open(zip_path, "rb") as f: project = async_run(import_project(controller, str(uuid.uuid4()), f)) + assert project.auto_open is False + assert project.auto_start is False assert project.name != "test"