mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-30 22:46:30 +02:00
Fix unit test
This commit is contained in:
parent
cf0fec178a
commit
e4c15ee28b
2 changed files with 8 additions and 8 deletions
|
@ -115,13 +115,13 @@ class RequestingEntityForm(RegistrarForm):
|
|||
if is_requesting_new_suborganization:
|
||||
# Validate custom suborganization fields
|
||||
if not cleaned_data.get("requested_suborganization"):
|
||||
self.add_error("requested_suborganization", "Requested suborganization is required")
|
||||
self.add_error("requested_suborganization", "Requested suborganization is required.")
|
||||
if not cleaned_data.get("suborganization_city"):
|
||||
self.add_error("suborganization_city", "City is required")
|
||||
self.add_error("suborganization_city", "City is required.")
|
||||
if not cleaned_data.get("suborganization_state_territory"):
|
||||
self.add_error("suborganization_state_territory", "State, territory, or military post is required")
|
||||
self.add_error("suborganization_state_territory", "State, territory, or military post is required.")
|
||||
elif not suborganization:
|
||||
self.add_error("sub_organization", "Select a suborganization.")
|
||||
self.add_error("sub_organization", "Suborganization is required.")
|
||||
|
||||
return cleaned_data
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue