mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-20 22:39:43 -04:00
calculate billable units when sending an sms
don't calculate it if we're in research mode * added tests to prove this * removed last code referring to content_char_count
This commit is contained in:
@@ -323,7 +323,7 @@ def sample_notification(notify_db,
|
||||
status='created',
|
||||
reference=None,
|
||||
created_at=None,
|
||||
content_char_count=160,
|
||||
billable_units=1,
|
||||
create=True,
|
||||
personalisation=None,
|
||||
api_key_id=None,
|
||||
@@ -356,7 +356,7 @@ def sample_notification(notify_db,
|
||||
'status': status,
|
||||
'reference': reference,
|
||||
'created_at': created_at,
|
||||
'content_char_count': content_char_count,
|
||||
'billable_units': billable_units,
|
||||
'personalisation': personalisation,
|
||||
'notification_type': template.template_type,
|
||||
'api_key_id': api_key_id,
|
||||
|
||||
Reference in New Issue
Block a user