mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 18:56:15 +02:00
Tests / code cleanup
This commit is contained in:
parent
3aac1e38df
commit
d7c7fb9d23
6 changed files with 188 additions and 130 deletions
|
@ -16,32 +16,25 @@ from registrar.utility.errors import (
|
|||
NameserverErrorCodes as nsErrorCodes,
|
||||
)
|
||||
|
||||
from registrar.models.utility.contact_error import ContactError, ContactErrorCodes
|
||||
from epplibwrapper import (
|
||||
CLIENT as registry,
|
||||
commands,
|
||||
common as epp,
|
||||
extensions,
|
||||
info as eppInfo,
|
||||
RegistryError,
|
||||
ErrorCode,
|
||||
)
|
||||
|
||||
from registrar.models.utility.contact_error import ContactError, ContactErrorCodes
|
||||
|
||||
from .utility.domain_field import DomainField
|
||||
from .utility.domain_helper import DomainHelper
|
||||
from .utility.time_stamped_model import TimeStampedModel
|
||||
|
||||
from .public_contact import PublicContact
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
try:
|
||||
from epplibwrapper import (
|
||||
CLIENT as registry,
|
||||
commands,
|
||||
common as epp,
|
||||
extensions,
|
||||
info as eppInfo,
|
||||
RegistryError,
|
||||
ErrorCode,
|
||||
)
|
||||
except ImportError as err:
|
||||
logger.error("An import error occured....")
|
||||
logger.error(err)
|
||||
raise err
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class Domain(TimeStampedModel, DomainHelper):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue