72b91fd864066052467341dd960218a8ffe3be73,accounts/tests/test_profile.py,UserEditProfile,test_edit_user_email_settings,#UserEditProfile#,149
Before Change
def test_edit_user_email_settings(self):
EmailPreferenceType.objects.create(name="email", display_name="email")
User.objects.create_user("testuser", password="testpass")
self.client.login(username="testuser", password="testpass")
response = self.client.post("/home/email-settings/", {
"email_types": 1,
})
After Change
def test_edit_user_email_settings(self):
EmailPreferenceType.objects.create(name="email", display_name="email")
user = User.objects.create_user("testuser")
self.client.force_login(user)
response = self.client.post("/home/email-settings/", {
"email_types": 1,
})
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: MTG/freesound
Commit Name: 72b91fd864066052467341dd960218a8ffe3be73
Time: 2019-05-16
Author: alastair.porter@upf.edu
File Name: accounts/tests/test_profile.py
Class Name: UserEditProfile
Method Name: test_edit_user_email_settings
Project Name: MTG/freesound
Commit Name: 72b91fd864066052467341dd960218a8ffe3be73
Time: 2019-05-16
Author: alastair.porter@upf.edu
File Name: accounts/tests/test_profile.py
Class Name: UserEditProfile
Method Name: test_edit_user_profile
Project Name: MTG/freesound
Commit Name: 72b91fd864066052467341dd960218a8ffe3be73
Time: 2019-05-16
Author: alastair.porter@upf.edu
File Name: accounts/tests/test_profile.py
Class Name: UserEditProfile
Method Name: test_edit_user_avatar