From e95967c6686d2ece8a2f7b8c9ffa6b403e065d82 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 26 Nov 2017 00:01:40 +0100 Subject: [PATCH] Update skipif condition for dcl.tests.test_create_vm_task --- datacenterlight/tests.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/datacenterlight/tests.py b/datacenterlight/tests.py index f90dcf1e..e67dd1a7 100644 --- a/datacenterlight/tests.py +++ b/datacenterlight/tests.py @@ -49,10 +49,11 @@ class CeleryTaskTestCase(TestCase): # OpenNebula call_command('fetchvmtemplates') - @skipIf(settings.OPENNEBULA_USERNAME is None or - settings.OPENNEBULA_USERNAME is "", - """Opennebula details unavailable, so skipping test_create_vm_task - """) + @skipIf( + settings.OPENNEBULA_DOMAIN is None or settings.OPENNEBULA_DOMAIN is + "test_domain", + """OpenNebula details unavailable, so skipping test_create_vm_task""" + ) def test_create_vm_task(self): """Tests the create vm task for monthly subscription