Skip to content

Commit

Permalink
Reverted reviewers suggestion, caused issues with missing variables i…
Browse files Browse the repository at this point in the history
…n tests
  • Loading branch information
David Murphy committed Jul 13, 2023
1 parent bcd6d52 commit d8b1a3e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/pytests/unit/utils/test_nacl.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@
import salt.utils.files
from tests.support.mock import patch

pytest.importorskip("libnacl")
try:
import salt.utils.nacl as nacl

HAS_PYNACL = nacl.check_requirements
except (ImportError, OSError, AttributeError):
HAS_PYNACL = False


@pytest.mark.skipif(
not HAS_PYNACL, reason="skipping test_nacl, reason=PyNaCl is unavailable"
)
@pytest.fixture
def configure_loader_modules():
return {
Expand Down

0 comments on commit d8b1a3e

Please sign in to comment.