Update skipif condition for dcl.tests.test_create_vm_task

This commit is contained in:
PCoder 2017-11-26 00:01:40 +01:00
parent 07ffbcda97
commit e95967c668

View file

@ -49,10 +49,11 @@ class CeleryTaskTestCase(TestCase):
# OpenNebula # OpenNebula
call_command('fetchvmtemplates') call_command('fetchvmtemplates')
@skipIf(settings.OPENNEBULA_USERNAME is None or @skipIf(
settings.OPENNEBULA_USERNAME is "", settings.OPENNEBULA_DOMAIN is None or settings.OPENNEBULA_DOMAIN is
"""Opennebula details unavailable, so skipping test_create_vm_task "test_domain",
""") """OpenNebula details unavailable, so skipping test_create_vm_task"""
)
def test_create_vm_task(self): def test_create_vm_task(self):
"""Tests the create vm task for monthly subscription """Tests the create vm task for monthly subscription