fix broken test

This commit is contained in:
Gabe Mulley
2018-05-14 13:21:49 -04:00
parent 669f61b2ea
commit 83b24e0453

View File

@@ -298,6 +298,8 @@ class TaskTestCase(ModuleStoreTestCase):
for key, entry in test_props.items():
setattr(message, key, entry)
test_props['nonInteraction'] = True
with mock.patch('analytics.track') as mock_analytics_track:
_track_notification_sent(message, context)
mock_analytics_track.assert_called_once_with(