mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 17:01:35 -05:00
re-add content_char_count to public GET /notification endpoints
we shouldn't remove stuff from endpoints or we'll break clients
This commit is contained in:
@@ -557,6 +557,7 @@ def test_get_notification_by_id_returns_merged_template_content(notify_db,
|
||||
assert response.status_code == 200
|
||||
assert notification['body'] == 'Hello world\nYour thing is due soon'
|
||||
assert 'subject' not in notification
|
||||
assert notification['content_char_count'] == 34
|
||||
|
||||
|
||||
def test_get_notification_by_id_returns_merged_template_content_for_email(
|
||||
@@ -580,6 +581,7 @@ def test_get_notification_by_id_returns_merged_template_content_for_email(
|
||||
assert response.status_code == 200
|
||||
assert notification['body'] == 'Hello world\nThis is an email from GOV.UK'
|
||||
assert notification['subject'] == 'world'
|
||||
assert notification['content_char_count'] is None
|
||||
|
||||
|
||||
def test_get_notifications_for_service_returns_merged_template_content(notify_api,
|
||||
|
||||
Reference in New Issue
Block a user