mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 09:21:54 +02:00
further fixed spacing in emails, and corrected unit tests
This commit is contained in:
parent
71ac6d8a9b
commit
15569e08f7
2 changed files with 3 additions and 3 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue