updated tests

This commit is contained in:
David Kennedy 2024-04-12 11:50:24 -04:00
parent 1fa0e63126
commit 673c092ea9
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
3 changed files with 22 additions and 12 deletions

View file

@ -93,12 +93,7 @@ class User(AbstractUser):
return self.domain_requests_created.filter(status=DomainRequest.DomainRequestStatus.INELIGIBLE).count()
def has_contact_info(self):
has_contact_info = (
self.contact.title or
self.email.title or
self.contact.phone
)
return has_contact_info
return bool(self.contact.title or self.contact.email or self.contact.phone)
@classmethod
def needs_identity_verification(cls, email, uuid):