mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 17:31:34 -05: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
|
||||
})
|
||||
db.session.add(history)
|
||||
return history
|
||||
return template
|
||||
|
||||
|
||||
@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
|
||||
|
||||
|
||||
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')
|
||||
data = {
|
||||
'name': 'Sample Template',
|
||||
|
||||
Reference in New Issue
Block a user