Update picture path in member test

This commit is contained in:
Alexandre Iooss 2020-09-02 23:25:32 +02:00
parent be6cf93cdb
commit 7bdf5a4366
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ class TestMemberships(TestCase):
old_pic = self.club.note.display_image
with open("media/pic/default.png", "rb") as f:
with open("apps/member/static/member/img/default_picture.png", "rb") as f:
image = SimpleUploadedFile("image.png", f.read(), "image/png")
response = self.client.post(reverse("member:club_update_pic", args=(self.club.pk,)), dict(
image=image,
@ -349,7 +349,7 @@ class TestMemberships(TestCase):
old_pic = self.user.note.display_image
with open("media/pic/default.png", "rb") as f:
with open("apps/member/static/member/img/default_picture.png", "rb") as f:
image = SimpleUploadedFile("image.png", f.read(), "image/png")
response = self.client.post(reverse("member:user_update_pic", args=(self.user.pk,)), dict(
image=image,