Fixes unit test

This commit is contained in:
Mouse Reeve 2022-12-04 11:44:42 -08:00
parent 70d639440e
commit b7b7b2680e

View file

@ -14,6 +14,7 @@ from bookwyrm.tests.validate_html import validate_html
class SiteSettingsViews(TestCase): class SiteSettingsViews(TestCase):
"""Edit site settings""" """Edit site settings"""
# pylint: disable=invalid-name
def setUp(self): def setUp(self):
"""we need basic test data and mocks""" """we need basic test data and mocks"""
self.factory = RequestFactory() self.factory = RequestFactory()
@ -56,6 +57,8 @@ class SiteSettingsViews(TestCase):
form.data["invite_request_text"] = "blah" form.data["invite_request_text"] = "blah"
form.data["code_of_conduct"] = "blah" form.data["code_of_conduct"] = "blah"
form.data["privacy_policy"] = "blah" form.data["privacy_policy"] = "blah"
form.data["show_impressum"] = False
form.data["impressum"] = "bleh"
request = self.factory.post("", form.data) request = self.factory.post("", form.data)
request.user = self.local_user request.user = self.local_user