Chris Hill-Scott
c38962e91a
Only put a character limit on SMS notifications
...
We limit SMS to be a maximum of 495 characters at the point of an
API call being made.
We were also applying this limit to emails, which is wrong.
2016-07-21 16:33:21 +01:00
Adam Shimali
9f9040869d
Daily message limit imposed for service api calls.
2016-07-14 11:25:45 +01:00
Chris Hill-Scott
aa12c88551
Add a test for sending email to provider
...
We had a test like this for sending sms, but not email. This meant that,
for example, we weren’t checking that the provider was getting passed
the HTML and plain text versions of the email.
2016-07-08 11:16:45 +01:00
Leo Hemsted
96513442fe
notifications from test api keys dont send for real - a la research_mode
...
also added a bunch more tests around api keys to help ensure we're behaving in at least a consistent way
2016-07-05 16:29:53 +01:00
Leo Hemsted
01419e7894
store api_key_id and key_type on notification
...
pass through from POST /notification/<type> to the celery task
also removed a couple of asserts that can fail (based on unfrozen time comparisons)
2016-07-01 14:35:02 +01:00
Leo Hemsted
5ae7ed1acb
only send to team emails/phones if POST /notificaiton/<type> with team api_key
...
uses same restriction as a service in trial mode
2016-07-01 14:33:25 +01:00
Leo Hemsted
5cd3043fc5
return replaced subject back from send_notification API
2016-06-21 15:03:33 +01:00
Leo Hemsted
2b13033e85
add template body, version, and subject to send_notification api
2016-06-15 14:51:35 +01:00
Leo Hemsted
d0eca79417
move all send_notification tests to separate file
2016-06-15 12:27:57 +01:00