Fixes edit user view tests

This commit is contained in:
Mouse Reeve 2021-08-04 11:30:23 -07:00
parent 9bbdde1597
commit 392eb83bb3

View file

@ -62,6 +62,7 @@ class EditUserViews(TestCase):
form = forms.EditUserForm(instance=self.local_user) form = forms.EditUserForm(instance=self.local_user)
form.data["name"] = "New Name" form.data["name"] = "New Name"
form.data["email"] = "wow@email.com" form.data["email"] = "wow@email.com"
form.data["default_post_privacy"] = "public"
form.data["preferred_timezone"] = "UTC" form.data["preferred_timezone"] = "UTC"
request = self.factory.post("", form.data) request = self.factory.post("", form.data)
request.user = self.local_user request.user = self.local_user
@ -81,6 +82,7 @@ class EditUserViews(TestCase):
form = forms.EditUserForm(instance=self.local_user) form = forms.EditUserForm(instance=self.local_user)
form.data["name"] = "New Name" form.data["name"] = "New Name"
form.data["email"] = "wow@email.com" form.data["email"] = "wow@email.com"
form.data["default_post_privacy"] = "public"
form.data["preferred_timezone"] = "UTC" form.data["preferred_timezone"] = "UTC"
image_file = pathlib.Path(__file__).parent.joinpath( image_file = pathlib.Path(__file__).parent.joinpath(
"../../static/images/no_cover.jpg" "../../static/images/no_cover.jpg"