Commit graph

31 commits

Author SHA1 Message Date
Adeodato Simó 31babdfa51
Always prefer shared inboxes when computing receipent lists
This avoids duplicate submissions to remote instances when mentioning
followers (i.e., `POST /user/foo/inbox` followed by `POST /inbox`, which
results in two separate `add_status` tasks, and might generate duplicates
in the target instance).
2024-01-26 06:18:02 -03:00
Mouse Reeve 799f842115
Merge pull request #3146 from dato/setup_test_data
Faster tests with setUpTestData
2023-12-11 15:45:40 -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
Adeodato Simó 5384e4c470
Use bulk_create to test ordered collections 2023-11-30 15:58:48 -03:00
Mouse Reeve 10e0f2224a Adds a couple more tests for find_existing 2023-11-05 06:44:39 -08:00
Josh Soref 7170e8972d spelling: uneventfully
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Mouse Reeve a6604c197d Updates tests 2022-12-11 13:19:26 -08:00
Mouse Reeve ddcaf8e3b8 Use asyncio for broadcasting 2022-11-10 15:41:56 -08:00
Mouse Reeve eb4a399472 Updates models tests 2021-12-09 12:43:09 -08:00
Mouse Reeve e6a251fdad Updates mocks across tests 2021-11-12 10:07:38 -08: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 cbf5747308 Mock mocks mocks 2021-08-03 21:59:48 -07:00
Mouse Reeve be044bce0d Updates mocks 2021-08-03 10:25:53 -07:00
Mouse Reeve 6d8bced0f1 Refactors test mocks 2021-08-02 16:05:40 -07:00
Mouse Reeve b41d9440fd Adds tests for ordered collection page generator 2021-07-07 10:53:25 -07: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 3ade2d3bb1 New version of black, new whitespace 2021-04-26 09:15:42 -07:00
Mouse Reeve cfa424ca59 Fixes nondeterministic test outcome 2021-04-22 09:37:24 -07:00
Mouse Reeve 7f271dbde7 Fixes model tests 2021-03-23 10:41:18 -07:00
Mouse Reeve 70296e760b Runs black 2021-03-08 08:49:10 -08:00
Mouse Reeve dbe9431d5a Fixes pure serializer 2021-02-20 11:24:41 -08:00
Mouse Reeve cbf5479253 Test fixes 2021-02-17 08:35:17 -08:00
Mouse Reeve 1d7cea2789 fixes tests with broadcast kwarg 2021-02-09 12:48:46 -08:00
Mouse Reeve 0a554b002d Fixes test for handling direct recipients 2021-02-09 10:43:40 -08:00
Mouse Reeve f917079c0b Adds update tests for objectmixin 2021-02-06 13:48:02 -08:00
Mouse Reeve d477b6d3f3 tests create and delete activity for objectmixin 2021-02-06 13:43:09 -08:00
Mouse Reeve 3b17c0ed44 Fixes broadcast recipients with software constraint 2021-02-06 12:41:35 -08:00
Mouse Reeve ff721896c0 Fixes call to mention_users 2021-02-06 12:06:45 -08:00
Mouse Reeve c7c975d695 Use save method override instead of a signal
and gets the new test file working
2021-02-06 12:00:47 -08:00