mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-18 10:29:23 +02:00
Add tests
This commit is contained in:
parent
ee90567700
commit
0effa81988
2 changed files with 370 additions and 69 deletions
|
@ -477,75 +477,6 @@ class DomainRequestWizard(DomainRequestWizardPermissionView, TemplateView):
|
|||
print("!!!! We are in the True if statement - form is complete")
|
||||
return True
|
||||
|
||||
# def _form_complete(self):
|
||||
# if (
|
||||
# (
|
||||
# self.domain_request.generic_org_type == DomainRequest.OrganizationChoices.FEDERAL
|
||||
# and (self.domain_request.federal_type is None or self.domain_request.federal_agency is None)
|
||||
# )
|
||||
# or (
|
||||
# self.domain_request.generic_org_type == DomainRequest.OrganizationChoices.INTERSTATE
|
||||
# and self.domain_request.about_your_organization is None
|
||||
# ) # State -> ""Election office" page can't be empty
|
||||
# or (
|
||||
# self.domain_request.generic_org_type == DomainRequest.OrganizationChoices.STATE_OR_TERRITORY
|
||||
# and self.domain_request.is_election_board is None
|
||||
# ) # Tribal -> "Tribal name" and "Election office" page can't be empty
|
||||
# or (
|
||||
# self.domain_request.generic_org_type == DomainRequest.OrganizationChoices.TRIBAL
|
||||
# and (self.domain_request.tribe_name is None or self.domain_request.is_election_board is None)
|
||||
# ) # County -> "Election office" page can't be empty
|
||||
# or (
|
||||
# self.domain_request.generic_org_type == DomainRequest.OrganizationChoices.COUNTY
|
||||
# and self.domain_request.is_election_board is None
|
||||
# ) # City -> "Election office" page can't be empty
|
||||
# or (
|
||||
# self.domain_request.generic_org_type == DomainRequest.OrganizationChoices.CITY
|
||||
# and self.domain_request.is_election_board is None
|
||||
# ) # Special District -> "Election office" and "About your organization" page can't be empty
|
||||
# or (
|
||||
# self.domain_request.generic_org_type == DomainRequest.OrganizationChoices.SPECIAL_DISTRICT
|
||||
# and (
|
||||
# self.domain_request.is_election_board is None or self.domain_request.about_your_organization is None
|
||||
# )
|
||||
# ) # all other logics
|
||||
# or (self.domain_request.generic_org_type is None)
|
||||
# # or (self.domain_request.tribe_name is None) -- Dont need bc above
|
||||
# # or (self.domain_request.federal_type is None) -- Dont need bc not every is federal type
|
||||
# # or (self.domain_request.is_election_board is None) -- Dont need bc above
|
||||
# or (
|
||||
# # self.domain_request.federal_agency is None or -- Dont need bc above
|
||||
# self.domain_request.organization_name is None
|
||||
# or self.domain_request.address_line1 is None
|
||||
# or self.domain_request.city is None
|
||||
# or self.domain_request.state_territory is None
|
||||
# or self.domain_request.zipcode is None
|
||||
# ) # for organization contact
|
||||
# # or (self.domain_request.about_your_organization is None) - Dont need bc above
|
||||
# or (self.domain_request.authorizing_official is None)
|
||||
# # # or (
|
||||
# # # self.domain_request.current_websites.exists() or self.domain_request.requested_domain is None
|
||||
# # # ) # for current_sites -- don't need current site bc not required
|
||||
# or (self.domain_request.requested_domain is None) # for dotgov_domain
|
||||
# or (self.domain_request.purpose is None)
|
||||
# or (self.domain_request.submitter is None) # for your_contact
|
||||
# or (self.domain_request.other_contacts is None)
|
||||
# or (self.domain_request.has_cisa_representative is None)
|
||||
# or (self.domain_request.has_anything_else_text is None)
|
||||
# # you click yes on having a cisa rep but you dont type in email -- this is insanely rare if not impossible edge case
|
||||
# or (self.domain_request.has_cisa_representative is True and self.domain_request.cisa_representative_email is None)
|
||||
# or (self.domain_request.is_policy_acknowledged is None) # for review
|
||||
# # logger.debug(function name found missing org type conditional)
|
||||
# ):
|
||||
# print("!!!! We are in the False if statement - form is not complete")
|
||||
|
||||
# return False
|
||||
# else:
|
||||
# print("!!!! We are in the True if statement - form is complete")
|
||||
# return True
|
||||
|
||||
# # return None
|
||||
|
||||
def get_context_data(self):
|
||||
"""Define context for access on all wizard pages."""
|
||||
# Build the submit button that we'll pass to the modal.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue