tests: Lazier const import to prevent early FQDN lookup

This commit is contained in:
Lauri Võsandi 2017-05-01 16:57:43 +00:00
parent bebfb137d6
commit bba1edb070
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,6 @@ import subprocess
import tempfile
from base64 import b64encode
from datetime import datetime, timedelta
from certidude import errors, const
from configparser import ConfigParser
def selinux_fixup(path):
@ -22,6 +21,7 @@ def certidude_request_certificate(server, system_keytab_required, key_path, requ
Exchange CSR for certificate using Certidude HTTP API server
"""
import requests
from certidude import errors, const
from cryptography import x509
from cryptography.hazmat.primitives.asymmetric import rsa, padding
from cryptography.hazmat.backends import default_backend