Update test with multiple placeholders added

It wasn’t possible to test for this before because the order of
placeholders was non-deterministic. The order has been made
deterministic in https://github.com/alphagov/notifications-utils/pull/674
This commit is contained in:
Chris Hill-Scott
2019-11-20 13:52:00 +00:00
parent 534be751dd
commit bf385486cf
4 changed files with 9 additions and 9 deletions

View File

@@ -10,6 +10,6 @@
{{ variables | formatted_list(
before_each="<code>",
after_each='</code>',
separator=' '
separator=', '
) }}
{%- endmacro %}

View File

@@ -23,5 +23,5 @@ awscli-cwlogs>=1.4,<1.5
# Putting upgrade on hold due to v1.0.0 using sha512 instead of sha1 by default
itsdangerous==0.24 # pyup: <1.0.0
git+https://github.com/alphagov/notifications-utils.git@36.1.2#egg=notifications-utils==36.1.2
git+https://github.com/alphagov/notifications-utils.git@36.2.1#egg=notifications-utils==36.2.1
git+https://github.com/alphagov/govuk-frontend-jinja.git@v0.3.0-alpha#egg=govuk-frontend-jinja==0.3.0-alpha

View File

@@ -25,14 +25,14 @@ awscli-cwlogs>=1.4,<1.5
# Putting upgrade on hold due to v1.0.0 using sha512 instead of sha1 by default
itsdangerous==0.24 # pyup: <1.0.0
git+https://github.com/alphagov/notifications-utils.git@36.1.2#egg=notifications-utils==36.1.2
git+https://github.com/alphagov/notifications-utils.git@36.2.1#egg=notifications-utils==36.2.1
git+https://github.com/alphagov/govuk-frontend-jinja.git@v0.3.0-alpha#egg=govuk-frontend-jinja==0.3.0-alpha
## The following requirements were added by pip freeze:
awscli==1.16.283
awscli==1.16.292
bleach==3.1.0
boto3==1.9.221
botocore==1.13.19
botocore==1.13.28
certifi==2019.9.11
chardet==3.0.4
Click==7.0
@@ -49,7 +49,7 @@ jdcal==1.4.1
Jinja2==2.10.3
jmespath==0.9.4
lml==0.0.9
lxml==4.4.1
lxml==4.4.2
MarkupSafe==1.1.1
mistune==0.8.4
monotonic==1.5

View File

@@ -1487,11 +1487,11 @@ def test_should_403_when_create_template_with_process_type_of_priority_for_non_p
),
(
"hello ((name))",
"hello ((full name))",
"hello ((first name)) ((middle name)) ((last name))",
[
'You removed ((name))',
'You added ((full name))',
'Before you send any messages, make sure your API calls include full name.',
'You added ((first name)) ((middle name)) and ((last name))',
'Before you send any messages, make sure your API calls include first name, middle name and last name.',
]
),
])