Commit 2c56efe6 authored by olivier R-D's avatar olivier R-D

disable crypto tests f crypto not available

parent 83370b4a
......@@ -3,6 +3,13 @@ import logging
import sys
sys.path.insert(0, "..")
sys.path.insert(0, ".")
try:
from opcua.crypto import uacrypto
CRYPTOGRAPHY_AVAILABLE = True
except ImportError:
print("WARNING: CRYPTO NOT AVAILABLE, CRYPTO TESTS DISABLED!!")
CRYPTOGRAPHY_AVAILABLE = False
......@@ -10,7 +17,8 @@ from tests_cmd_lines import TestCmdLines
from tests_server import TestServer
from tests_client import TestClient
from tests_unit import Unit
from tests_crypto_connect import TestCryptoConnect
if CRYPTOGRAPHY_AVAILABLE:
from tests_crypto_connect import TestCryptoConnect
if __name__ == '__main__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment