1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 00:08:11 +00:00

Fix project tests

This commit is contained in:
ziajka 2017-09-05 10:38:17 +02:00
parent daf7ed8c95
commit e5a7eb74ed
2 changed files with 5 additions and 2 deletions

View File

@ -176,6 +176,8 @@ def test_import_iou_linux_no_vm(linux_platform, async_run, tmpdir, controller):
"""
project_id = str(uuid.uuid4())
controller._computes["local"] = AsyncioMagicMock()
topology = {
"project_id": str(uuid.uuid4()),
"name": "test",
@ -361,6 +363,8 @@ def test_import_node_id(linux_platform, async_run, tmpdir, controller):
"""
project_id = str(uuid.uuid4())
controller._computes["local"] = AsyncioMagicMock()
topology = {
"project_id": str(uuid.uuid4()),
"name": "test",

View File

@ -425,8 +425,7 @@ def test_open_close(async_run, controller):
def test_open_auto_start(async_run, controller):
project = Project(controller=controller, status="closed", name="Test")
project.auto_start = True
project = Project(controller=controller, status="closed", name="Test", auto_start=True)
project.start_all = AsyncioMagicMock()
async_run(project.open())
assert project.start_all.called