1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 18:37:12 +00:00

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

View File

@ -125,7 +125,7 @@ class TestMemberships(TestCase):
old_pic = self.club.note.display_image 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") image = SimpleUploadedFile("image.png", f.read(), "image/png")
response = self.client.post(reverse("member:club_update_pic", args=(self.club.pk,)), dict( response = self.client.post(reverse("member:club_update_pic", args=(self.club.pk,)), dict(
image=image, image=image,
@ -349,7 +349,7 @@ class TestMemberships(TestCase):
old_pic = self.user.note.display_image 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") image = SimpleUploadedFile("image.png", f.read(), "image/png")
response = self.client.post(reverse("member:user_update_pic", args=(self.user.pk,)), dict( response = self.client.post(reverse("member:user_update_pic", args=(self.user.pk,)), dict(
image=image, image=image,