mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
Build DVLA file with blank TO_NAME_2 field
Problem: we were sending the first line of the address in the `TO_NAME_2` field. This meant that they couldn’t do any PAF lookups with it, because it wasn’t where they were expecting. The first line of the address is the second line of what our users give us. We need to give this to DVLA as the _third_ line of the address output, which they call `TO_ADDRESS_LINE_1`.
This commit is contained in:
@@ -1018,4 +1018,4 @@ def test_dvla_letter_template(sample_letter_notification):
|
||||
letter = LetterDVLATemplate(t,
|
||||
sample_letter_notification.personalisation,
|
||||
12345)
|
||||
assert str(letter) == "140|500|001||201703230012345|||||||||||||A1|A2|A3|A4|A5|A6||A_POST|||||||||23 March 2017<cr><cr><h1>Template subject<normal><cr><cr>Dear Sir/Madam, Hello. Yours Truly, The Government.<cr><cr>" # noqa
|
||||
assert str(letter) == "140|500|001||201703230012345|||||||||||||A1||A2|A3|A4|A5|A6|A_POST|||||||||23 March 2017<cr><cr><h1>Template subject<normal><cr><cr>Dear Sir/Madam, Hello. Yours Truly, The Government.<cr><cr>" # noqa
|
||||
|
||||
Reference in New Issue
Block a user