Cleanup + (mostly) fix tests

This commit is contained in:
zandercymatics 2024-06-20 12:44:22 -06:00
parent 4c84ad8456
commit 3441a3974f
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
7 changed files with 41 additions and 12 deletions

View file

@ -557,7 +557,6 @@ class DomainRequest(TimeStampedModel):
blank=True,
)
def get_action_needed_reason_default_email_text(self, action_needed_reason: str):
"""Returns the default email associated with the given action needed reason"""
if action_needed_reason is None or action_needed_reason == self.ActionNeededReasons.OTHER:
@ -579,10 +578,9 @@ class DomainRequest(TimeStampedModel):
return {
"subject_text": subject_template.render(context=context),
"email_body_text": template.render(context=context)
"email_body_text": template.render(context=context),
}
def sync_organization_type(self):
"""
Updates the organization_type (without saving) to match