Fix project tests

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

No files matched your search

+4
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",
+1 -2
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