Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 10 additions & 13 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,13 @@ def key_path(key_name):
return os.path.join(os.path.dirname(os.path.realpath(__file__)), "keys", key_name)


def no_crypto_required(class_or_func):
decorator = pytest.mark.skipif(
has_crypto,
reason="Requires cryptography library not installed",
)
return decorator(class_or_func)


def crypto_required(class_or_func):
decorator = pytest.mark.skipif(
not has_crypto, reason="Requires cryptography library installed"
)
return decorator(class_or_func)
no_crypto_required = pytest.mark.skipif(
has_crypto,
reason="Requires cryptography library not installed",
)


crypto_required = pytest.mark.skipif(
not has_crypto,
reason="Requires cryptography library installed",
)
Loading