Commit graph

35 commits

Author SHA1 Message Date
Adeodato Simó e2c9ea3cd2 Fix instances of bad-classmethod-argument in recently edited files 2024-03-17 21:28:55 -03:00
Adeodato Simó 1b9e0546e6 Bracket-wrap calls to patch() for better readability 2024-03-17 20:34:12 -03: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 7ff654720c updates tests 2022-12-16 14:45:32 -08:00
Mouse Reeve 317cf5fcf5 Generate fewer add_status_tasks
Previously, every time a status was saved, a task would start to add it
to people's timelines. This meant there were a ton of duplicate tasks
that were potentially heavy to run. Now, the Status model has a "ready"
field which indicates that it's worth updating the timelines. It
defaults to True, which prevents statuses from accidentally not being
added due to ready state.

The ready state is explicitly set to false in the view, which is the
source of most of the noise for that task.
2022-11-15 14:14:32 -08:00
Mouse Reeve b2775c5160 Check unsupported types before attempting to serialize 2022-05-16 10:21:54 -07:00
Mouse Reeve fd43b56d31 Fixes celery error encountering Article type activities 2022-05-16 10:17:21 -07:00
Mouse Reeve 93dbe2daa0 Updates inbox tests 2021-12-09 15:02:53 -08:00
Mouse Reeve e6a251fdad Updates mocks across tests 2021-11-12 10:07:38 -08:00
Mouse Reeve f901806574 Test to ensure incoming statuses have thread ids 2021-10-01 14:56:38 -07:00
Mouse Reeve 59400511c9 mocks mocks more mocks 2021-09-06 17:55:44 -07:00
Mouse Reeve bb94995389 Where you need one mock, you probably need the other 2021-09-06 14:48:45 -07:00
Mouse Reeve a6b0ba1826 Updates activistreams add_status mock 2021-09-06 13:53:49 -07:00
Mouse Reeve d7a168e0a9 Python formatting 2021-08-16 14:00:11 -07:00
Mouse Reeve bb49d0dc9b Adds test 2021-08-16 13:59:15 -07:00
Mouse Reeve 2eb37663b6 Adds mock to inbox test 2021-08-07 14:46:33 -07:00
Mouse Reeve f35855ce69 Moore moocks 2021-08-03 13:50:12 -07:00
Mouse Reeve 338dfd4909 More test fixes 2021-08-02 17:31:25 -07:00
Mouse Reeve 85be4ecfeb Trying to fix mocks in inbox create tests 2021-08-02 16:58:24 -07:00
Mouse Reeve 00c8f2a88a Python formatting 2021-08-02 16:35:53 -07:00
Mouse Reeve 4a7da32f96 Fixes mock in inbox create tests 2021-08-02 16:33:23 -07:00
Mouse Reeve 0a7afdb1c0 Python formatting 2021-08-02 16:07:39 -07:00
Mouse Reeve 6d8bced0f1 Refactors test mocks 2021-08-02 16:05:40 -07:00
Joachim 878cc5cb17 Lint 2021-05-27 23:21:47 +02:00
Joachim f8df501239 Fix tests (for realz) 2021-05-27 23:19:17 +02:00
Joachim b7965ce2ae Fix tests 2021-05-27 21:37:27 +02:00
Joachim 2ea1cd8319 Tests 2021-05-26 23:57:29 +02:00
Mouse Reeve d61ba2e474 Fixes review rating serialization 2021-04-29 15:16:51 -07:00
Mouse Reeve daf65e230d Test for failing rate federation 2021-04-29 14:43:14 -07:00
Mouse Reeve 3ade2d3bb1 New version of black, new whitespace 2021-04-26 09:15:42 -07:00
Mouse Reeve 02e6602a0b Reject statuses from deactivated remote users 2021-04-17 17:55:22 -07:00
Mouse Reeve caa261f4bf Gracefully handle expect, unsupported activities 2021-04-16 15:12:38 -07:00
Mouse Reeve a7375c4c13 Adds remove list item test and updates add/create tests 2021-04-08 15:24:23 -07:00
Mouse Reeve 94764160cc Whitespace fixes 2021-04-08 12:15:47 -07:00
Mouse Reeve 9894b777b6 Separates inbox tests into multiple files 2021-04-08 12:12:18 -07:00