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:
Leo Hemsted
2016-08-03 16:26:11 +01:00
parent 2793541b9c
commit 527a5c4eaa
9 changed files with 47 additions and 37 deletions

View File

@@ -1,4 +1,4 @@
from flask import jsonify, current_app, Blueprint
from flask import jsonify, Blueprint
from apispec import APISpec
@@ -11,7 +11,7 @@ api_spec = APISpec(
)
api_spec.definition('NotificationWithTemplateSchema', properties={
"content_char_count": {
"billable_units": {
"format": "int32",
"type": "integer"
},