mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 02:06:03 +02:00
Ran formatter
This commit is contained in:
parent
6289b982f6
commit
8b17d184eb
2 changed files with 3 additions and 3 deletions
|
@ -1366,6 +1366,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
||||||
def is_ipv6(self, ip: str):
|
def is_ipv6(self, ip: str):
|
||||||
ip_addr = ipaddress.ip_address(ip)
|
ip_addr = ipaddress.ip_address(ip)
|
||||||
return ip_addr.version == 6
|
return ip_addr.version == 6
|
||||||
|
|
||||||
def _fetch_hosts(self, host_data):
|
def _fetch_hosts(self, host_data):
|
||||||
"""Fetch host info."""
|
"""Fetch host info."""
|
||||||
hosts = []
|
hosts = []
|
||||||
|
|
|
@ -680,7 +680,6 @@ class MockEppLib(TestCase):
|
||||||
"ns1.my-nameserver-2.com",
|
"ns1.my-nameserver-2.com",
|
||||||
"ns1.cats-are-superior3.com",
|
"ns1.cats-are-superior3.com",
|
||||||
],
|
],
|
||||||
|
|
||||||
)
|
)
|
||||||
infoDomainNoHost = fakedEppObject(
|
infoDomainNoHost = fakedEppObject(
|
||||||
"my-nameserver.gov",
|
"my-nameserver.gov",
|
||||||
|
@ -717,7 +716,7 @@ class MockEppLib(TestCase):
|
||||||
],
|
],
|
||||||
addrs=["1.2.3.4", "2.3.4.5"],
|
addrs=["1.2.3.4", "2.3.4.5"],
|
||||||
)
|
)
|
||||||
|
|
||||||
infoDomainCheckHostIPCombo = fakedEppObject(
|
infoDomainCheckHostIPCombo = fakedEppObject(
|
||||||
"nameserversubdomain.gov",
|
"nameserversubdomain.gov",
|
||||||
cr_date=datetime.datetime(2023, 5, 25, 19, 45, 35),
|
cr_date=datetime.datetime(2023, 5, 25, 19, 45, 35),
|
||||||
|
@ -759,7 +758,7 @@ class MockEppLib(TestCase):
|
||||||
but only relevant pieces for tests"""
|
but only relevant pieces for tests"""
|
||||||
if isinstance(_request, commands.InfoDomain):
|
if isinstance(_request, commands.InfoDomain):
|
||||||
return self._getattrInfoDomain(_request)
|
return self._getattrInfoDomain(_request)
|
||||||
|
|
||||||
elif isinstance(_request, commands.InfoContact):
|
elif isinstance(_request, commands.InfoContact):
|
||||||
mocked_result: info.InfoContactResultData
|
mocked_result: info.InfoContactResultData
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue