Fix tests / lint

This commit is contained in:
zandercymatics 2024-04-18 12:36:11 -06:00
parent 229e080703
commit 9931fcc4d3
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 6 additions and 7 deletions

View file

@ -680,9 +680,8 @@ class AdditionalDetailsForm(BaseDeletableRegistrarForm):
) )
], ],
error_messages={ error_messages={
"required": ( "required": (
"Provide additional details youd like us to know. " "Provide additional details youd like us to know. " "If you have nothing to add, select “No.”"
"If you have nothing to add, select “No.”"
) )
}, },
) )

View file

@ -738,11 +738,9 @@ class DomainRequest(TimeStampedModel):
self.has_cisa_representative = ( self.has_cisa_representative = (
self.cisa_representative_email != "" and self.cisa_representative_email is not None self.cisa_representative_email != "" and self.cisa_representative_email is not None
) )
if self.anything_else is not None: if self.anything_else is not None:
self.has_anything_else_text = ( self.has_anything_else_text = self.anything_else != "" and self.anything_else is not None
self.anything_else != "" and self.anything_else is not None
)
def __str__(self): def __str__(self):
try: try:

View file

@ -1883,7 +1883,9 @@ class TestDomainRequestAdmin(MockEppLib):
"purpose", "purpose",
"no_other_contacts_rationale", "no_other_contacts_rationale",
"anything_else", "anything_else",
"has_anything_else_text",
"cisa_representative_email", "cisa_representative_email",
"has_cisa_representative",
"is_policy_acknowledged", "is_policy_acknowledged",
"submission_date", "submission_date",
"notes", "notes",