Skip test if required cypto libs are not available

This commit is contained in:
Pedro Algarvio 2019-04-17 16:11:12 +01:00
parent e6bc9f8e14
commit 72e8603046
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -35,6 +35,7 @@ def fake_wait_for_ip(check_for_ip_fn,
@skipIf(NO_MOCK, NO_MOCK_REASON)
@skipIf(joyent.HAS_REQUIRED_CRYPTO is False, reason='PyCrypto or Cryptodome not installed')
class JoyentTestCase(TestCase, LoaderModuleMockMixin):
'''
Unit TestCase for the salt.cloud.clouds.joyent module