Skip to content

Commit

Permalink
Reverting review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
David Murphy committed Jul 14, 2023
1 parent 5d523f3 commit 403b3eb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/pytests/integration/runners/test_nacl.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,21 @@
import salt.utils.stringutils
from tests.support.mock import patch

pytest.importorskip("libnacl")

pytestmark = [
pytest.mark.windows_whitelisted,
]

try:
import salt.runners.nacl as nacl

HAS_PYNACL = True
except (ImportError, OSError, AttributeError):
HAS_PYNACL = False


@pytest.mark.skipif(
not HAS_PYNACL, reason="skipping test_nacl, reason=PyNaCl is unavailable"
)
@pytest.fixture(scope="module")
def minion_opts():
return salt.config.minion_config(None)
Expand Down

0 comments on commit 403b3eb

Please sign in to comment.