mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-08 07:18:26 -04:00
-Fix typo
- return template from dao not the history
This commit is contained in:
@@ -60,7 +60,7 @@ def dao_update_template_reply_to(template_id, reply_to):
|
|||||||
"service_letter_contact_id": template.service_letter_contact_id
|
"service_letter_contact_id": template.service_letter_contact_id
|
||||||
})
|
})
|
||||||
db.session.add(history)
|
db.session.add(history)
|
||||||
return history
|
return template
|
||||||
|
|
||||||
|
|
||||||
@transactional
|
@transactional
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ def test_dao_update_tempalte_reply_to_some_to_some(sample_service, sample_user):
|
|||||||
assert updated_history.updated_at == updated_history.updated_at
|
assert updated_history.updated_at == updated_history.updated_at
|
||||||
|
|
||||||
|
|
||||||
def test_dao_update_tempalte_reply_to_some_to_none(sample_service, sample_user):
|
def test_dao_update_template_reply_to_some_to_none(sample_service, sample_user):
|
||||||
letter_contact = create_letter_contact(sample_service, 'Edinburgh, ED1 1AA')
|
letter_contact = create_letter_contact(sample_service, 'Edinburgh, ED1 1AA')
|
||||||
data = {
|
data = {
|
||||||
'name': 'Sample Template',
|
'name': 'Sample Template',
|
||||||
|
|||||||
Reference in New Issue
Block a user