Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajordat committed Oct 18, 2024
1 parent cd5f41a commit a51d2c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alteredbuilder/profiles/tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_invalid_profile_invalid_handle(self):
self.assertFormError(form, "altered_handle", "Enter a valid value.")

def test_valid_profile_unauthenticated(self):
form_data = {"bio": "hey", "altered_handle": "test_0000"}
form_data = {"bio": "hey", "altered_handle": "test_0000", "avatar": "NE_DEFAULT.png"}

form = UserProfileForm(data=form_data)

Expand All @@ -48,7 +48,7 @@ def test_edit_profile_authenticated(self):
user.profile.bio = "hey"
user.profile.altered_handle = "test_0000"
user.profile.save()
form_data = {"bio": "new bio", "altered_handle": "another_handle_0001"}
form_data = {"bio": "new bio", "altered_handle": "another_handle_0001", "avatar": "NE_DEFAULT.png"}
self.client.force_login(user)

response = self.client.post(reverse("profile-edit"), form_data)
Expand Down

0 comments on commit a51d2c5

Please sign in to comment.