1
0
Fork 0

Override raise_not_editable for report model

This model uses "reporter" as the field that represents the onwer of the
object, and "user" and the subject. In retrospect, maybe not the ideal
way to do it.
This commit is contained in:
Mouse Reeve 2022-09-19 09:20:07 -07:00
parent 543d13af6e
commit aa67f23b03
2 changed files with 9 additions and 0 deletions

View file

@ -11,6 +11,7 @@ from bookwyrm.tests.validate_html import validate_html
class ReportViews(TestCase):
"""every response to a get request, html or json"""
# pylint: disable=invalid-name
def setUp(self):
"""we need basic test data and mocks"""
self.factory = RequestFactory()