Merge pull request #46650 from Ch3LL/nacl_test

Mirror libnacl imports in test from the nacl module
This commit is contained in:
Nicole Thomas 2018-03-26 10:48:39 -04:00 committed by GitHub
commit c67afbeb36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
'''
Tests for the salt-run command
Tests for the nacl execution module
'''
# Import Python libs
from __future__ import absolute_import, print_function, unicode_literals
@ -12,7 +12,8 @@ from tests.support.case import ModuleCase
from tests.support.unit import skipIf
try:
import libnacl # pylint: disable=unused-import
import libnacl.secret # pylint: disable=unused-import
import libnacl.sealed # pylint: disable=unused-import
HAS_LIBNACL = True
except ImportError:
HAS_LIBNACL = False

View file

@ -10,7 +10,8 @@ from tests.support.case import ShellCase
from tests.support.unit import skipIf
try:
import libnacl # pylint: disable=unused-import
import libnacl.secret # pylint: disable=unused-import
import libnacl.sealed # pylint: disable=unused-import
HAS_LIBNACL = True
except ImportError:
HAS_LIBNACL = False