mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-06 21:33:00 +00:00
Reorganize imports due to https://github.com/ansible-community/antsibull-nox/pull/136.
This commit is contained in:
@@ -12,6 +12,8 @@ from unittest.mock import (
|
||||
)
|
||||
|
||||
import pytest
|
||||
from freezegun import freeze_time
|
||||
|
||||
from ansible_collections.community.crypto.plugins.module_utils._acme.backend_cryptography import (
|
||||
HAS_CURRENT_CRYPTOGRAPHY,
|
||||
CryptographyBackend,
|
||||
@@ -23,7 +25,6 @@ from ansible_collections.community.crypto.plugins.module_utils._time import (
|
||||
UTC,
|
||||
ensure_utc_timezone,
|
||||
)
|
||||
from freezegun import freeze_time
|
||||
|
||||
from ..test__time import TIMEZONES
|
||||
from .backend_data import (
|
||||
|
||||
@@ -12,6 +12,8 @@ from unittest.mock import (
|
||||
)
|
||||
|
||||
import pytest
|
||||
from freezegun import freeze_time
|
||||
|
||||
from ansible_collections.community.crypto.plugins.module_utils._acme.backend_openssl_cli import (
|
||||
OpenSSLCLIBackend,
|
||||
)
|
||||
@@ -19,7 +21,6 @@ from ansible_collections.community.crypto.plugins.module_utils._time import (
|
||||
UTC,
|
||||
ensure_utc_timezone,
|
||||
)
|
||||
from freezegun import freeze_time
|
||||
|
||||
from .backend_data import (
|
||||
TEST_CERT,
|
||||
|
||||
@@ -10,6 +10,7 @@ from unittest.mock import (
|
||||
)
|
||||
|
||||
import pytest
|
||||
|
||||
from ansible_collections.community.crypto.plugins.module_utils._acme.challenges import (
|
||||
Authorization,
|
||||
Challenge,
|
||||
|
||||
@@ -10,6 +10,7 @@ from unittest.mock import (
|
||||
)
|
||||
|
||||
import pytest
|
||||
|
||||
from ansible_collections.community.crypto.plugins.module_utils._acme.errors import (
|
||||
ACMEProtocolException,
|
||||
format_error_problem,
|
||||
|
||||
@@ -9,6 +9,7 @@ from unittest.mock import (
|
||||
)
|
||||
|
||||
import pytest
|
||||
|
||||
from ansible_collections.community.crypto.plugins.module_utils._acme.errors import (
|
||||
ACMEProtocolException,
|
||||
)
|
||||
|
||||
@@ -9,6 +9,7 @@ import pathlib
|
||||
import typing as t
|
||||
|
||||
import pytest
|
||||
|
||||
from ansible_collections.community.crypto.plugins.module_utils._acme.backends import (
|
||||
CertificateInformation,
|
||||
CryptoBackend,
|
||||
|
||||
@@ -10,6 +10,7 @@ import re
|
||||
import subprocess
|
||||
|
||||
import pytest
|
||||
|
||||
from ansible_collections.community.crypto.plugins.module_utils._crypto._asn1 import (
|
||||
serialize_asn1_string_as_der,
|
||||
)
|
||||
|
||||
@@ -9,6 +9,8 @@ import typing as t
|
||||
|
||||
import cryptography
|
||||
import pytest
|
||||
from cryptography.x509 import NameAttribute, OtherName, oid
|
||||
|
||||
from ansible_collections.community.crypto.plugins.module_utils._crypto.basic import (
|
||||
OpenSSLObjectError,
|
||||
)
|
||||
@@ -21,7 +23,6 @@ from ansible_collections.community.crypto.plugins.module_utils._crypto.cryptogra
|
||||
from ansible_collections.community.crypto.plugins.module_utils._version import (
|
||||
LooseVersion,
|
||||
)
|
||||
from cryptography.x509 import NameAttribute, OtherName, oid
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
|
||||
from ansible_collections.community.crypto.plugins.module_utils._crypto.math import (
|
||||
binary_exp_mod,
|
||||
convert_bytes_to_int,
|
||||
|
||||
@@ -7,6 +7,7 @@ from __future__ import annotations
|
||||
import typing as t
|
||||
|
||||
import pytest
|
||||
|
||||
from ansible_collections.community.crypto.plugins.module_utils._crypto.pem import (
|
||||
extract_first_pem,
|
||||
identify_pem_format,
|
||||
|
||||
@@ -7,6 +7,7 @@ from __future__ import annotations
|
||||
import pathlib
|
||||
|
||||
import pytest
|
||||
|
||||
from ansible_collections.community.crypto.plugins.module_utils._openssh.certificate import (
|
||||
OpensshCertificate,
|
||||
OpensshCertificateOption,
|
||||
|
||||
@@ -12,6 +12,7 @@ from socket import gethostname
|
||||
from tempfile import mkdtemp
|
||||
|
||||
import pytest
|
||||
|
||||
from ansible_collections.community.crypto.plugins.module_utils._openssh.cryptography import (
|
||||
HAS_OPENSSH_SUPPORT,
|
||||
InvalidCommentError,
|
||||
|
||||
@@ -7,6 +7,7 @@ from __future__ import annotations
|
||||
import typing as t
|
||||
|
||||
import pytest
|
||||
|
||||
from ansible_collections.community.crypto.plugins.module_utils._openssh.utils import (
|
||||
OpensshParser,
|
||||
_OpensshWriter,
|
||||
|
||||
@@ -8,6 +8,8 @@ import datetime
|
||||
import typing as t
|
||||
|
||||
import pytest
|
||||
from freezegun import freeze_time
|
||||
|
||||
from ansible_collections.community.crypto.plugins.module_utils._time import (
|
||||
UTC,
|
||||
add_or_remove_timezone,
|
||||
@@ -19,7 +21,6 @@ from ansible_collections.community.crypto.plugins.module_utils._time import (
|
||||
get_relative_time_option,
|
||||
remove_timezone,
|
||||
)
|
||||
from freezegun import freeze_time
|
||||
|
||||
|
||||
TIMEZONES = [
|
||||
|
||||
Reference in New Issue
Block a user