Update unit tests

This commit is contained in:
Rebecca Hsieh 2024-04-12 14:52:36 -07:00
parent 82285e70c1
commit 757eba1d6e
No known key found for this signature in database
2 changed files with 10 additions and 3 deletions

View file

@ -215,7 +215,7 @@ class TestDomainCache(MockEppLib):
domain=domain,
contact_type=security,
registry_id="123",
email="123@mail.gov",
email="security@mail.gov",
voice="+1.8882820870",
fax="+1-212-9876543",
pw="lastPw",
@ -1036,7 +1036,7 @@ class TestRegistrantContacts(MockEppLib):
domain, _ = Domain.objects.get_or_create(name="igorville.gov", state=Domain.State.DNS_NEEDED)
expectedSecContact = PublicContact.get_default_security()
expectedSecContact.domain = domain
expectedSecContact.email = "123@mail.gov"
expectedSecContact.email = "security@mail.gov"
domain.security_contact = expectedSecContact
expectedCreateCommand = self._convertPublicContactToEpp(expectedSecContact, disclose_email=True)
self.mockedSendFunction.assert_any_call(expectedCreateCommand, cleaned=True)
@ -2014,6 +2014,13 @@ class TestRegistrantDNSSEC(MockEppLib):
),
cleaned=True,
),
call(
commands.InfoDomain(
name="dnssec-dsdata.gov",
),
cleaned=True,
),
call(commands.InfoHost(name="fake.host.com"), cleaned=True),
call(
commands.UpdateDomain(
name="dnssec-dsdata.gov",

View file

@ -257,7 +257,7 @@ class TestDomainDetail(TestDomainOverview):
detail_page = home_page.click("Manage", index=0)
self.assertContains(detail_page, "Expired")
self.assertContains(detail_page, "DNS needed")
self.assertNotContains(detail_page, "DNS needed")
def test_domain_detail_blocked_for_ineligible_user(self):
"""We could easily duplicate this test for all domain management