Commit graph

16 commits

Author SHA1 Message Date
Mouse Reeve 8de3668065 Expands tests and fixes logic error in report recipients 2024-01-02 19:48:43 -08:00
Mouse Reeve 5c0ade5346 Changes field names in report model so the reporter is "user"
This is such an annoying change but it is objectively better. Just gotta
be real sure they didn't get mixed up anywhere along the way.
2024-01-02 14:43:28 -08:00
Adeodato Simó 9d502f5ee2
Use setUpTestData() to speed up tests
Pylint's `bad-classmethod-argument` is disabled for each definition
to avoid rewriting the method bodies just to rename `self` → `cls`.
This can be done gradually, as the setUpTestData methods are modified
along the way.
2023-12-11 19:40:30 -03:00
Mouse Reeve affaf3d0ba Fixes tests and incorrect class method reference 2023-05-22 06:39:23 -07:00
Mouse Reeve f95729a0c3 Adds unit test for failing view 2022-11-15 21:45:06 -08:00
Mouse Reeve 948f2964ac Updates admin tests to use perms instead of superuser
Superuser overrides all perms, so this was hiding simple typo-related
bugs in the permissions system
2022-07-07 14:01:05 -07:00
Mouse Reeve b2a8a04092 Removes unnecessary imports 2022-07-06 11:24:04 -07:00
Mouse Reeve c48fbd8753 Separates reporting and report admins tests 2022-07-06 09:47:48 -07:00
Mouse Reeve 89aa1673b2 Admin views tests 2022-01-27 19:39:07 -08:00
Mouse Reeve de1bace8f3 Updates tests 2022-01-11 08:06:52 -08:00
Mouse Reeve d9d0919ad4 More mocks for more tests 2021-12-09 19:14:10 -08:00
Mouse Reeve e6a251fdad Updates mocks across tests 2021-11-12 10:07:38 -08:00
Mouse Reeve bdb1d1998a Helper function for html validation 2021-09-30 22:22:20 -07:00
Mouse Reeve ada3e1d4d6 Adds options to html validator and fixes dl/dts 2021-09-28 15:02:24 -07:00
Mouse Reeve afcd296513 Test rendered html 2021-09-28 13:44:49 -07:00
Mouse Reeve fa0e3cc112 Creates admin views test directory 2021-09-28 13:21:51 -07:00
Renamed from bookwyrm/tests/views/test_reports.py (Browse further)