mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Recognise that broadcast messages include content
The content attribute needs to be added to the model so we can use it later.
This commit is contained in:
@@ -34,3 +34,14 @@ def test_simple_polygons(fake_uuid):
|
||||
# total coordinates
|
||||
[51],
|
||||
]
|
||||
|
||||
|
||||
def test_content_comes_from_attribute_not_template(fake_uuid):
|
||||
broadcast_message = BroadcastMessage(broadcast_message_json(
|
||||
id_=fake_uuid,
|
||||
service_id=fake_uuid,
|
||||
template_id=fake_uuid,
|
||||
status='draft',
|
||||
created_by_id=fake_uuid,
|
||||
))
|
||||
assert broadcast_message.content == 'This is a test'
|
||||
|
||||
Reference in New Issue
Block a user