Update skipif condition
This commit is contained in:
parent
3284adaf7a
commit
8c5848c1aa
1 changed files with 4 additions and 2 deletions
|
@ -262,8 +262,10 @@ class SaveSSHKeyTestCase(TestCase):
|
||||||
self.public_key = settings.TEST_MANAGE_SSH_KEY_PUBKEY
|
self.public_key = settings.TEST_MANAGE_SSH_KEY_PUBKEY
|
||||||
self.hosts = settings.TEST_MANAGE_SSH_KEY_HOST
|
self.hosts = settings.TEST_MANAGE_SSH_KEY_HOST
|
||||||
|
|
||||||
@skipIf(settings.TEST_MANAGE_SSH_KEY_PUBKEY == "" or
|
@skipIf(settings.TEST_MANAGE_SSH_KEY_PUBKEY is "" or
|
||||||
settings.TEST_MANAGE_SSH_KEY_HOST == "",
|
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
|
"""Skipping test_save_ssh_key_add because either host
|
||||||
or public key were not specified or were empty""")
|
or public key were not specified or were empty""")
|
||||||
def test_save_ssh_key_add(self):
|
def test_save_ssh_key_add(self):
|
||||||
|
|
Loading…
Reference in a new issue