Merge pull request #16908 from edx/jmbowman/PLAT-1847

PLAT-1847 Fix cms tests under Django 1.9
This commit is contained in:
Jeremy Bowman
2017-12-14 13:49:55 -05:00
committed by GitHub
8 changed files with 36 additions and 12 deletions

View File

@@ -130,7 +130,7 @@ class TestUserEvents(UserSettingsEventTestMixin, TestCase):
"""
Verify that we don't emit events for related fields.
"""
self.user.passwordhistory_set.add(PasswordHistory(password='new_password'))
self.user.passwordhistory_set.create(password='new_password')
self.user.save()
self.assert_no_events_were_emitted()