Support for auto open projects

Fix #1418
This commit is contained in:
Julien Duponchelle committed 2016-08-16 16:04:20 +02:00
1 parent 12735ff36e
commit ac085126fc
4 files changed
+11 -3

No files matched your search

+1 -1
View File
@@ -121,7 +121,7 @@ def test_load_projects(controller, projects_dir, async_run):
with open(os.path.join(projects_dir, "project1", "project1.gns3"), "w+") as f:
f.write("")
with asyncio_patch("gns3server.controller.Controller.load_project") as mock_load_project:
async_run(controller.load())
async_run(controller.load_projects())
mock_load_project.assert_called_with(os.path.join(projects_dir, "project1", "project1.gns3"), load=False)
-1
View File
@@ -506,4 +506,3 @@ def test_suspend_all(project, async_run):
compute.post = AsyncioMagicMock()
async_run(project.suspend_all())
assert len(compute.post.call_args_list) == 10