Bump utils to 39.0.0

`allow_international_letters` is a new, required argument, so the tests
that make some `Row` objects need to provide that.

There are now 8 possible address columns (7 plus postcode) so the tests
need to expect that. But this won’t have any user-facing impact.
This commit is contained in:
Chris Hill-Scott
2020-04-29 15:51:02 +01:00
parent ba0d330593
commit 0c1373eeb5
3 changed files with 10 additions and 7 deletions

View File

@@ -340,7 +340,7 @@ def test_should_process_letter_job(sample_letter_job, mocker):
row_call = process_row_mock.mock_calls[0][1]
assert row_call[0].index == 0
assert row_call[0].recipient == ['A1', 'A2', 'A3', 'A4', None, None, 'A_POST']
assert row_call[0].recipient == ['A1', 'A2', 'A3', 'A4', None, None, 'A_POST', None]
assert row_call[0].personalisation == {
'addressline1': 'A1',
'addressline2': 'A2',
@@ -407,6 +407,7 @@ def test_process_row_sends_letter_task(template_type, research_mode, expected_fu
recipient_column_headers=['to'],
placeholders={'foo'},
template=template,
allow_international_letters=True,
),
template,
job,
@@ -449,6 +450,7 @@ def test_process_row_when_sender_id_is_provided(mocker, fake_uuid):
recipient_column_headers=['to'],
placeholders={'foo'},
template=template,
allow_international_letters=True,
),
template,
job,
@@ -1418,6 +1420,7 @@ def test_get_letter_template_instance(mocker, sample_job):
'address line 5',
'address line 6',
'postcode',
'address line 7',
]