mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-06 11:12:47 -05:00
Rename template_content to content
`template_content` is a template that hasn't had its placeholders filled in whereas content is where it would have (which is what has happened above)
This commit is contained in:
@@ -2267,7 +2267,7 @@ class BroadcastMessage(db.Model):
|
||||
'template_id': str(self.template_id),
|
||||
'template_version': self.template_version,
|
||||
'template_name': self.template.name,
|
||||
'template_content': self.content,
|
||||
'content': self.content,
|
||||
|
||||
'personalisation': self.personalisation,
|
||||
'areas': self.areas.get("areas", []),
|
||||
|
||||
@@ -35,7 +35,7 @@ def test_get_broadcast_message(admin_request, sample_broadcast_service):
|
||||
|
||||
assert response['id'] == str(bm.id)
|
||||
assert response['template_id'] == str(t.id)
|
||||
assert response['template_content'] == 'This is a test'
|
||||
assert response['content'] == 'This is a test'
|
||||
assert response['template_name'] == t.name
|
||||
assert response['status'] == BroadcastStatusType.DRAFT
|
||||
assert response['created_at'] is not None
|
||||
|
||||
Reference in New Issue
Block a user