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:
parent
543d13af6e
commit
aa67f23b03
2 changed files with 9 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue