mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-20 09:46:06 +02:00
Lint
This commit is contained in:
parent
60726f8c9b
commit
d286fb6709
2 changed files with 4 additions and 15 deletions
|
@ -652,12 +652,8 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
def isActive(self):
|
||||
return self.state == Domain.State.CREATED
|
||||
|
||||
|
||||
def map_epp_contact_to_public_contact(
|
||||
self,
|
||||
contact: eppInfo.InfoContactResultData,
|
||||
contact_id,
|
||||
contact_type
|
||||
self, contact: eppInfo.InfoContactResultData, contact_id, contact_type
|
||||
):
|
||||
"""Maps the Epp contact representation to a PublicContact object.
|
||||
|
||||
|
@ -827,9 +823,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
|||
|
||||
# If the for loop didn't do a return,
|
||||
# then we know that it doesn't exist within cache
|
||||
logger.info(
|
||||
f"Requested contact {contact.registry_id} does not exist in cache."
|
||||
)
|
||||
logger.info(f"Requested contact {contact.registry_id} does not exist in cache.")
|
||||
return None
|
||||
|
||||
# ForeignKey on UserDomainRole creates a "permissions" member for
|
||||
|
|
|
@ -1414,11 +1414,7 @@ class TestDomainDetail(TestWithDomainPermissions, WebTest, MockEppLib):
|
|||
|
||||
domain_contact, _ = Domain.objects.get_or_create(name="freeman.gov")
|
||||
# Add current user to this domain
|
||||
_ = UserDomainRole(
|
||||
user=self.user,
|
||||
domain = domain_contact,
|
||||
role = "admin"
|
||||
).save()
|
||||
_ = UserDomainRole(user=self.user, domain=domain_contact, role="admin").save()
|
||||
page = self.client.get(
|
||||
reverse("domain-security-email", kwargs={"pk": domain_contact.id})
|
||||
)
|
||||
|
@ -1434,7 +1430,7 @@ class TestDomainDetail(TestWithDomainPermissions, WebTest, MockEppLib):
|
|||
self.mockSendPatch = patch("registrar.models.domain.registry.send")
|
||||
self.mockedSendFunction = self.mockSendPatch.start()
|
||||
self.mockedSendFunction.side_effect = self.mockSend
|
||||
|
||||
|
||||
page = self.client.get(
|
||||
reverse("domain-security-email", kwargs={"pk": self.domain.id})
|
||||
)
|
||||
|
@ -1454,7 +1450,6 @@ class TestDomainDetail(TestWithDomainPermissions, WebTest, MockEppLib):
|
|||
@skip("Ticket 912 needs to fix this one")
|
||||
def test_domain_security_email_form(self):
|
||||
"""Adding a security email works.
|
||||
|
||||
Uses self.app WebTest because we need to interact with forms.
|
||||
"""
|
||||
security_email_page = self.app.get(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue