mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 18:25:58 +02:00
updated email output for application submission, and updated associated tests
This commit is contained in:
parent
569c3e7e50
commit
c8513bbfdc
2 changed files with 19 additions and 3 deletions
|
@ -2,7 +2,19 @@ SUMMARY OF YOUR DOMAIN REQUEST
|
||||||
|
|
||||||
Type of organization:
|
Type of organization:
|
||||||
{{ application.get_organization_type_display }}
|
{{ application.get_organization_type_display }}
|
||||||
|
{% if application.show_organization_federal %}
|
||||||
|
Federal government branch:
|
||||||
|
{{ application.get_federal_type_display }}
|
||||||
|
{% elif application.show_tribal_government %}
|
||||||
|
Tribal government:
|
||||||
|
{{ application.tribe_name|default:"Incomplete" }}{% if application.federally_recognized_tribe %}
|
||||||
|
Federally-recognized tribe
|
||||||
|
{% endif %}{% if application.state_recognized_tribe %}
|
||||||
|
State-recognized tribe
|
||||||
|
{% endif %}{% endif %}{% if application.show_organization_election %}
|
||||||
|
Election office:
|
||||||
|
{{ application.is_election_board|yesno:"Yes,No,Incomplete" }}
|
||||||
|
{% endif %}
|
||||||
Organization name and mailing address:
|
Organization name and mailing address:
|
||||||
{% spaceless %}{{ application.organization_name }}
|
{% spaceless %}{{ application.organization_name }}
|
||||||
{{ application.address_line1 }}{% if application.address_line2 %}
|
{{ application.address_line1 }}{% if application.address_line2 %}
|
||||||
|
@ -35,7 +47,10 @@ Your contact information:
|
||||||
Other employees from your organization:
|
Other employees from your organization:
|
||||||
{% for other in application.other_contacts.all %}
|
{% for other in application.other_contacts.all %}
|
||||||
{% spaceless %}{% include "emails/includes/contact.txt" with contact=other %}{% endspaceless %}
|
{% spaceless %}{% include "emails/includes/contact.txt" with contact=other %}{% endspaceless %}
|
||||||
{% endfor %}{% endif %}{% if application.anything_else %}
|
{% endfor %}{% else %}
|
||||||
|
No other employees from your organization?
|
||||||
|
{{ application.no_other_contacts_rationale }}
|
||||||
|
{% endif %}{% if application.anything_else %}
|
||||||
Anything else?
|
Anything else?
|
||||||
{{ application.anything_else }}
|
{{ application.anything_else }}
|
||||||
{% endif %}
|
{% endif %}
|
|
@ -104,7 +104,8 @@ class TestEmails(TestCase):
|
||||||
body = kwargs["Content"]["Simple"]["Body"]["Text"]["Data"]
|
body = kwargs["Content"]["Simple"]["Body"]["Text"]["Data"]
|
||||||
self.assertNotIn("Other employees from your organization:", body)
|
self.assertNotIn("Other employees from your organization:", body)
|
||||||
# spacing should be right between adjacent elements
|
# spacing should be right between adjacent elements
|
||||||
self.assertRegex(body, r"5556\n\nAnything else")
|
self.assertRegex(body, r"5556\n\nNo other employees")
|
||||||
|
self.assertRegex(body, r"None\n\nAnything else")
|
||||||
|
|
||||||
@boto3_mocking.patching
|
@boto3_mocking.patching
|
||||||
def test_submission_confirmation_alternative_govdomain_spacing(self):
|
def test_submission_confirmation_alternative_govdomain_spacing(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue