mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Fix project tests
This commit is contained in:
parent
daf7ed8c95
commit
e5a7eb74ed
@ -176,6 +176,8 @@ def test_import_iou_linux_no_vm(linux_platform, async_run, tmpdir, controller):
|
|||||||
"""
|
"""
|
||||||
project_id = str(uuid.uuid4())
|
project_id = str(uuid.uuid4())
|
||||||
|
|
||||||
|
controller._computes["local"] = AsyncioMagicMock()
|
||||||
|
|
||||||
topology = {
|
topology = {
|
||||||
"project_id": str(uuid.uuid4()),
|
"project_id": str(uuid.uuid4()),
|
||||||
"name": "test",
|
"name": "test",
|
||||||
@ -361,6 +363,8 @@ def test_import_node_id(linux_platform, async_run, tmpdir, controller):
|
|||||||
"""
|
"""
|
||||||
project_id = str(uuid.uuid4())
|
project_id = str(uuid.uuid4())
|
||||||
|
|
||||||
|
controller._computes["local"] = AsyncioMagicMock()
|
||||||
|
|
||||||
topology = {
|
topology = {
|
||||||
"project_id": str(uuid.uuid4()),
|
"project_id": str(uuid.uuid4()),
|
||||||
"name": "test",
|
"name": "test",
|
||||||
|
@ -425,8 +425,7 @@ def test_open_close(async_run, controller):
|
|||||||
|
|
||||||
|
|
||||||
def test_open_auto_start(async_run, controller):
|
def test_open_auto_start(async_run, controller):
|
||||||
project = Project(controller=controller, status="closed", name="Test")
|
project = Project(controller=controller, status="closed", name="Test", auto_start=True)
|
||||||
project.auto_start = True
|
|
||||||
project.start_all = AsyncioMagicMock()
|
project.start_all = AsyncioMagicMock()
|
||||||
async_run(project.open())
|
async_run(project.open())
|
||||||
assert project.start_all.called
|
assert project.start_all.called
|
||||||
|
Loading…
Reference in New Issue
Block a user