updated test to use random string not numeric id formats

This commit is contained in:
Martyn Inglis
2017-04-13 12:52:49 +01:00
parent b8cfaf02f6
commit 1894c96f3a

View File

@@ -1045,8 +1045,8 @@ def test_dvla_letter_template(sample_letter_notification):
"subject": sample_letter_notification.template.subject} "subject": sample_letter_notification.template.subject}
letter = LetterDVLATemplate(t, letter = LetterDVLATemplate(t,
sample_letter_notification.personalisation, sample_letter_notification.personalisation,
12345) "random-string")
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||random-string|||||||||||||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
def test_update_job_to_sent_to_dvla(sample_letter_template, sample_letter_job): def test_update_job_to_sent_to_dvla(sample_letter_template, sample_letter_job):