Updated the schema to return reply_to - which is the id and reply_to_text which is the contact_block

This commit is contained in:
Rebecca Law
2018-02-14 11:20:09 +00:00
parent c833a76070
commit 94162bc1bf
2 changed files with 7 additions and 2 deletions

View File

@@ -111,4 +111,5 @@ def test_update_template_reply_to_updates_history(client, sample_letter_template
hist_json_resp = json.loads(resp.get_data(as_text=True))
assert 'service_letter_contact_id' not in hist_json_resp['data']
assert hist_json_resp['data']['reply_to_text'] == str(letter_contact.id)
assert hist_json_resp['data']['reply_to'] == str(letter_contact.id)
assert hist_json_resp['data']['reply_to_text'] == letter_contact.contact_block