* Move imports in owntracks component * Fix nacl import * Fix nacl import 2 * Fix nacl import 3 * Add helper.supports_encryption tests * Fix tests helper 1 * Fix tests 2 * Add not_supports_encryption + get_cipher_error tests * Code cov * Fix nacl_not_imported test
10 lines
191 B
Python
10 lines
191 B
Python
"""Helper for OwnTracks."""
|
|
try:
|
|
import nacl
|
|
except ImportError:
|
|
nacl = None
|
|
|
|
|
|
def supports_encryption() -> bool:
|
|
"""Test if we support encryption."""
|
|
return nacl is not None
|