some fixes to unit tests; accounting for submission date in django admin and on submission of application

This commit is contained in:
David Kennedy 2023-12-13 16:41:46 -05:00
parent acc853da68
commit 9a53e92f8b
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
3 changed files with 3 additions and 1 deletions

View file

@ -229,6 +229,7 @@ class DomainInformation(TimeStampedModel):
da_dict.pop("alternative_domains", None) da_dict.pop("alternative_domains", None)
da_dict.pop("requested_domain", None) da_dict.pop("requested_domain", None)
da_dict.pop("approved_domain", None) da_dict.pop("approved_domain", None)
da_dict.pop("submission_date", None)
other_contacts = da_dict.pop("other_contacts", []) other_contacts = da_dict.pop("other_contacts", [])
domain_info = cls(**da_dict) domain_info = cls(**da_dict)
domain_info.domain_application = domain_application domain_info.domain_application = domain_application

View file

@ -623,6 +623,7 @@ class TestDomainApplicationAdmin(MockEppLib):
"no_other_contacts_rationale", "no_other_contacts_rationale",
"anything_else", "anything_else",
"is_policy_acknowledged", "is_policy_acknowledged",
"submission_date",
"current_websites", "current_websites",
"other_contacts", "other_contacts",
"alternative_domains", "alternative_domains",

View file

@ -100,7 +100,7 @@ class LoggedInTests(TestWithUser):
response = self.client.get("/") response = self.client.get("/")
# count = 2 because it is also in screenreader content # count = 2 because it is also in screenreader content
self.assertContains(response, "igorville.gov", count=2) self.assertContains(response, "igorville.gov", count=2)
self.assertContains(response, "DNS needed") self.assertContains(response, "Expired")
# clean up # clean up
role.delete() role.delete()