Fix unit test

This commit is contained in:
Rebecca Hsieh 2024-06-25 11:29:01 -07:00
parent 0ec2a0db9d
commit acc2328b01
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View file

@ -1175,7 +1175,7 @@ class DomainRequest(TimeStampedModel):
and self._is_requested_domain_complete() and self._is_requested_domain_complete()
and self._is_purpose_complete() and self._is_purpose_complete()
# NOTE: This flag leaves submitter as empty (request wont submit) hence preset to True # NOTE: This flag leaves submitter as empty (request wont submit) hence preset to True
and (self._is_submitter_complete() if not has_profile_feature_flag else True) and (self._is_submitter_complete() or not has_profile_feature_flag)
and self._is_other_contacts_complete() and self._is_other_contacts_complete()
and self._is_additional_details_complete() and self._is_additional_details_complete()
and self._is_policy_acknowledgement_complete() and self._is_policy_acknowledgement_complete()

View file

@ -1086,8 +1086,7 @@ class TestDomainSeniorOfficial(TestDomainOverview):
def test_domain_senior_official(self): def test_domain_senior_official(self):
"""Can load domain's senior official page.""" """Can load domain's senior official page."""
page = self.client.get(reverse("domain-senior-official", kwargs={"pk": self.domain.id})) page = self.client.get(reverse("domain-senior-official", kwargs={"pk": self.domain.id}))
# once on the sidebar, once in the title self.assertContains(page, "Senior official", count=13)
self.assertContains(page, "Senior official", count=3)
def test_domain_senior_official_content(self): def test_domain_senior_official_content(self):
"""Senior official information appears on the page.""" """Senior official information appears on the page."""