def test_actions(self): if not getattr(settings, 'RUN_TW_TESTS', False): actions.make_call( "+447472785934", "http://servercode.co.uk/nhshackday/hi_mum_medication_reminder.mp3" ) actions.send_sms("+447472785934", "Hello again Ross!")
def send_reminder_task(reminder_id): reminder = Reminder.objects.get(pk=reminder_id) if reminder.message: send_sms(reminder.telnumber, reminder.message) elif reminder.audiourl: make_call(reminder.telnumber, reminder.audiourl) else: logger.warn('Reminder %s has neither message nor url', reminder.pk)
def test_call(self): sid = actions.make_call("+441324430099", "https://api.twilio.com/cowbell.mp3") assert len(sid) == 34
def test_call(self): sid = actions.make_call( "+441324430099", "https://api.twilio.com/cowbell.mp3" ) assert len(sid) == 34