From 8c5848c1aa11e38b0d33dceb9528ce646944cd2b Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 25 Nov 2017 23:14:40 +0100 Subject: [PATCH] Update skipif condition --- utils/tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/tests.py b/utils/tests.py index d7b002f9..beae6feb 100644 --- a/utils/tests.py +++ b/utils/tests.py @@ -262,8 +262,10 @@ class SaveSSHKeyTestCase(TestCase): self.public_key = settings.TEST_MANAGE_SSH_KEY_PUBKEY self.hosts = settings.TEST_MANAGE_SSH_KEY_HOST - @skipIf(settings.TEST_MANAGE_SSH_KEY_PUBKEY == "" or - settings.TEST_MANAGE_SSH_KEY_HOST == "", + @skipIf(settings.TEST_MANAGE_SSH_KEY_PUBKEY is "" or + settings.TEST_MANAGE_SSH_KEY_PUBKEY is None or + settings.TEST_MANAGE_SSH_KEY_HOST is "" or + settings.TEST_MANAGE_SSH_KEY_HOST is None, """Skipping test_save_ssh_key_add because either host or public key were not specified or were empty""") def test_save_ssh_key_add(self):