mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
4 files changed
+11
-3
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user