mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
Fix tests / lint
This commit is contained in:
parent
229e080703
commit
9931fcc4d3
3 changed files with 6 additions and 7 deletions
|
@ -680,9 +680,8 @@ class AdditionalDetailsForm(BaseDeletableRegistrarForm):
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
error_messages={
|
error_messages={
|
||||||
"required": (
|
"required": (
|
||||||
"Provide additional details you’d like us to know. "
|
"Provide additional details you’d like us to know. " "If you have nothing to add, select “No.”"
|
||||||
"If you have nothing to add, select “No.”"
|
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue