72b91fd864066052467341dd960218a8ffe3be73,accounts/tests/test_profile.py,UserEditProfile,test_edit_user_avatar,#UserEditProfile#,162
Before Change
@override_avatars_path_with_temp_directory
def test_edit_user_avatar(self):
User.objects.create_user("testuser", password="testpass")
self.client.login(username="testuser", password="testpass")
self.client.post("/home/edit/", {
"image-file": open(settings.MEDIA_ROOT + "/images/70x70_avatar.png"),
"image-remove": False,
After Change
@override_avatars_path_with_temp_directory
def test_edit_user_avatar(self):
user = User.objects.create_user("testuser")
self.client.force_login(user)
self.client.post("/home/edit/", {
"image-file": open(settings.MEDIA_ROOT + "/images/70x70_avatar.png"),
"image-remove": False,
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_avatar
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