Commit 1c1fb1bd by Gregory Martin

Update

parent 4d5f5c3f
......@@ -62,7 +62,7 @@ def _track_notification_sent(message, context):
properties = {
'site': context['site'].domain,
'app_label': 'discussion',
'name': 'responsenotification',
'name': 'responsenotification', # This is 'Campaign' in GA
'language': message.language,
'uuid': unicode(message.uuid),
'send_uuid': unicode(message.send_uuid),
......
......@@ -214,6 +214,8 @@ class TaskTestCase(ModuleStoreTestCase):
self.assertEqual(expected_recipient, actual_message.recipient)
self.assertEqual(self.course.language, actual_message.language)
self._assert_rendered_email(actual_message)
with patch('analytics.track') as mock_analytics_track:
self.assertEqual(mock_analytics_track.call_count, 1)
else:
self.assertFalse(self.mock_ace_send.called)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment