further fixed spacing in emails, and corrected unit tests

This commit is contained in:
David Kennedy 2024-01-19 07:59:08 -05:00
parent 71ac6d8a9b
commit 15569e08f7
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
2 changed files with 3 additions and 3 deletions

View file

@ -21,8 +21,8 @@ Current website for your organization: {% for site in application.current_websit
{% spaceless %}{{ site.website }}{% endspaceless %}
{% endfor %}{% endif %}
.gov domain:
{{ application.requested_domain.name }}{% if application.alternative_domains.all %}
{{ application.requested_domain.name }}
{% if application.alternative_domains.all %}
Alternative domains:
{% for site in application.alternative_domains.all %}{% spaceless %}{{ site.website }}{% endspaceless %}
{% endfor %}{% endif %}

View file

@ -117,7 +117,7 @@ class TestEmails(TestCase):
body = kwargs["Content"]["Simple"]["Body"]["Text"]["Data"]
self.assertIn("city1.gov", body)
# spacing should be right between adjacent elements
self.assertRegex(body, r"city.gov\ncity1.gov\n\nPurpose of your domain:")
self.assertRegex(body, r"city.gov\n\nAlternative domains:\ncity1.gov\n\nPurpose of your domain:")
@boto3_mocking.patching
def test_submission_confirmation_no_alternative_govdomain_spacing(self):