Commit graph

707 commits

Author SHA1 Message Date
Mouse Reeve
cfa424ca59 Fixes nondeterministic test outcome 2021-04-22 09:37:24 -07:00
Mouse Reeve
9c87c91c62
Merge pull request #979 from bookwyrm-social/allow-refollow
Allow refollow
2021-04-22 08:56:48 -07:00
Mouse Reeve
d5b27e2202 Test re-following a user 2021-04-22 08:31:32 -07:00
Mouse Reeve
dd0aa7a123 Test that remote user is being set on books 2021-04-22 08:08:03 -07:00
Mouse Reeve
c405580e8e Updates edition federation test 2021-04-22 07:37:12 -07:00
Mouse Reeve
92bd5ab291
Merge pull request #970 from bookwyrm-social/display-fixes
Display fixes
2021-04-20 13:59:32 -07:00
Mouse Reeve
baa423bb69
Merge pull request #967 from bookwyrm-social/date-localization
Fixes localization weirdness with dates
2021-04-20 13:44:34 -07:00
Mouse Reeve
b22d1863c9 More robust user page test and bug fix 2021-04-20 12:31:45 -07:00
Mouse Reeve
2c013b677b Patch broadcast in test 2021-04-19 20:01:29 -07:00
Mouse Reeve
63509c954d Adds test for changing user group 2021-04-19 18:12:55 -07:00
Mouse Reeve
e1d24577d4 Fixes tests (again) 2021-04-19 16:42:51 -07:00
Mouse Reeve
11aa8baa53 Fixes tests and notifications page 2021-04-19 16:33:28 -07:00
Mouse Reeve
35cb3fa8fc Updates tests 2021-04-19 16:08:01 -07:00
Mouse Reeve
d69ce8cbbd
Merge pull request #923 from SavinaRoja/584-sorting-lists
584 sorting of lists
2021-04-19 14:37:50 -07:00
Pablo Barton
fa75438070 per review, removing custom pagination for booklist and handling all pending books at the end of the list 2021-04-18 14:46:28 -04:00
Pablo Barton
afd1cdc2a8 adjust test 2021-04-18 11:52:22 -04:00
Pablo Barton
602c8c83ba black 2021-04-17 22:09:00 -04:00
Pablo Barton
9031184176 addressing some review 2021-04-17 21:31:38 -04:00
Mouse Reeve
02e6602a0b Reject statuses from deactivated remote users 2021-04-17 17:55:22 -07:00
Mouse Reeve
ebdbdc8790 Broadcast deletions 2021-04-17 13:19:23 -07:00
Mouse Reeve
5b7f2007e8 Broadcast user deletions 2021-04-17 12:51:36 -07:00
Mouse Reeve
5df2ac676b Fixes error on deletion requests for unknown users 2021-04-17 12:51:30 -07:00
Mouse Reeve
8548cc99db
Merge pull request #946 from bookwyrm-social/ap-questions
Gracefully handle expect but unsupported activities
2021-04-17 11:52:40 -07:00
Pablo Barton
f6824268ed 584 sorting of lists 2021-04-16 22:17:15 -04:00
Mouse Reeve
caa261f4bf Gracefully handle expect, unsupported activities 2021-04-16 15:12:38 -07:00
Mouse Reeve
80ea459711 Suitable test name and comment 2021-04-15 17:57:02 -07:00
Mouse Reeve
da453f8056 Adds test for populate streams management command 2021-04-15 17:43:27 -07:00
Mouse Reeve
25b82fd2b0 Updates test 2021-04-15 16:11:03 -07:00
Mouse Reeve
822e2e1a93 Python formatting 2021-04-12 15:09:50 -07:00
Mouse Reeve
a907dfdce7 Adds tests for block lists 2021-04-12 15:08:10 -07:00
Mouse Reeve
a1e28d810d
Merge pull request #881 from mouse-reeve/domain-block
Block federation at the domain level
2021-04-12 10:41:02 -07:00
Mouse Reeve
bb352439d3 Fixes views test for federation unblock 2021-04-12 10:27:29 -07:00
Mouse Reeve
878b3c6fe8 Only reactivate appropriate users when undoing domain block 2021-04-12 10:16:03 -07:00
Mouse Reeve
a8abc3f649
Merge pull request #922 from void-witch/fix-date
add regression tests for published dates not being saved
2021-04-12 09:39:52 -07:00
Mouse Reeve
8f3601d4cd Adds redis mocks to base model tests 2021-04-12 06:44:50 -07:00
Mouse Reeve
c8812c48c1 Use local user in test 2021-04-11 11:58:00 -07:00
Mouse Reeve
08586e348c Adds users to base model mock 2021-04-11 10:55:13 -07:00
Mouse Reeve
db4519b2e1 Fixes visible_to_user check for non-federated objs
why did this cause a problem _now_??
2021-04-11 10:45:08 -07:00
Mouse Reeve
659986771f Edit notes on federated servers 2021-04-11 10:36:40 -07:00
Mouse Reeve
77caf1a8fa Merge branch 'main' into domain-block 2021-04-11 10:02:11 -07:00
Mouse Reeve
b6a7871b04 Makes visibility evaluator a model function 2021-04-11 09:31:18 -07:00
Mouse Reeve
6d76782ee1 Mocks list item remove test 2021-04-11 09:00:44 -07:00
n2no1
b293901417 add regression tests for published dates not being saved
closes #894
2021-04-10 20:21:29 -04:00
Mouse Reeve
89d3c3e82b Tests searching for users on blocked servers 2021-04-10 11:49:45 -07:00
Mouse Reeve
0caeb3ac33 fixes inbox tests 2021-04-10 11:18:22 -07:00
Mouse Reeve
8797b3d240 Python formatting 2021-04-10 11:07:59 -07:00
Mouse Reeve
d5fbdacc02 Adds unblock view 2021-04-10 11:06:28 -07:00
Mouse Reeve
7b60626661 Updates block unit test 2021-04-10 10:51:45 -07:00
Mouse Reeve
81bc25b012 Fixes create test 2021-04-10 10:24:09 -07:00
Mouse Reeve
d076162aa6 Remove edit server mode
It just doesn't really make sense
2021-04-10 10:09:36 -07:00
Mouse Reeve
c4bca42f64 Adds test for edit view GET request 2021-04-10 09:52:11 -07:00
Mouse Reeve
13d54871b7 Merge branch 'main' into domain-block 2021-04-10 09:26:01 -07:00
Mouse Reeve
14b0b978a3 Updates shelf models tests 2021-04-08 20:58:15 -07:00
Mouse Reeve
c149003d89 Fixes fields on unknown boost test 2021-04-08 20:34:22 -07:00
Mouse Reeve
af6cab2e3f Don't reutnr an error when discarding activity objects 2021-04-08 20:03:29 -07:00
Mouse Reeve
fdf5113143 Removes tag code 2021-04-08 16:02:02 -07:00
Mouse Reeve
37aacee9c6 Fixes actors in inbox add/remove tests 2021-04-08 15:50:21 -07:00
Mouse Reeve
32bf510755 Updates inbox remove tests 2021-04-08 15:46:06 -07:00
Mouse Reeve
6310532ddf Updates inbox add tests 2021-04-08 15:43:19 -07:00
Mouse Reeve
ddd05a68cf Resolve and assign target collection for collection items 2021-04-08 15:40:02 -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
43f0d4e603 Adds activity tests to shelf views tests 2021-04-08 15:21:22 -07:00
Mouse Reeve
ee6f37d7d2 python formatting 2021-04-08 15:11:16 -07:00
Mouse Reeve
b1491c2ac6 Adds privacy and recipient details to list items 2021-04-08 15:09:56 -07:00
Mouse Reeve
1f930ba821 Updates list view tests 2021-04-08 14:51:52 -07:00
Mouse Reeve
af58455ae9 Updates mock paradigm in lists tests 2021-04-08 14:20:16 -07:00
Mouse Reeve
45926eed34 Adds necessary user to inbox tests 2021-04-08 13:33:24 -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
Mouse Reeve
0de1b8d0c3 Case insensitive remote user search 2021-04-08 09:59:21 -07:00
Mouse Reeve
4e0225749d Merge branch 'main' into domain-block 2021-04-07 11:23:15 -07:00
Mouse Reeve
b96a092e71
Merge pull request #879 from mouse-reeve/redis-stores
Created generic redis class for activitystreams
2021-04-06 08:27:21 -07:00
Mouse Reeve
a39cd670ef Fixes boosted remote statuses coming in as Notes 2021-04-05 18:05:06 -07:00
Mouse Reeve
2e245f84be Adds test for loading remote boosted statuses 2021-04-05 18:02:24 -07:00
Mouse Reeve
fb72db7507 Fixes federation view tests 2021-04-05 16:50:36 -07:00
Mouse Reeve
a4b892dfad Fixes domain block tests 2021-04-05 16:47:48 -07:00
Mouse Reeve
34b790a086 Adds tests for blocked server checks 2021-04-05 15:54:33 -07:00
Mouse Reeve
6a3c01a67f stream_users function has been renamed 2021-04-05 14:17:45 -07:00
Mouse Reeve
56330d448b Changes remove status redis mock 2021-04-05 14:08:24 -07:00
Mouse Reeve
467748e2c8 Adds delete and redraft tests 2021-04-04 09:45:25 -07:00
Mouse Reeve
ae1ebecc76 Fixes tests for suggested/annotated users 2021-04-02 07:31:11 -07:00
Mouse Reeve
19c2c7f67c test get started user view with query 2021-04-01 09:39:57 -07:00
Mouse Reeve
ed127f4e07 Save and continue from get started books view 2021-04-01 09:13:10 -07:00
Mouse Reeve
e2388d8f67 Makes user profile view editable 2021-04-01 08:38:42 -07:00
Mouse Reeve
31b7d267a4 Adds initial view tests 2021-04-01 08:22:17 -07:00
Mouse Reeve
2fd917a6cc Updates test 2021-03-31 10:24:23 -07:00
Mouse Reeve
0365a57307 Handle invalid status urls with 404 2021-03-30 10:46:02 -07:00
Mouse Reeve
b16f95c8cd Python formatting 2021-03-30 09:50:51 -07:00
Mouse Reeve
59ebcc62ee Adds import retry test 2021-03-30 09:24:23 -07:00
Mouse Reeve
5deb7d8bba Updates librarthing importer tests 2021-03-30 09:13:41 -07:00
Mouse Reeve
c64fc79431 Updates goodreads tests 2021-03-30 09:09:28 -07:00
Mouse Reeve
754ccaedd6 Move importers into module 2021-03-30 09:03:57 -07:00
Mouse Reeve
a54014f693 Fixes import retry 2021-03-30 08:44:17 -07:00
Mouse Reeve
e86f160c53
Merge pull request #812 from SavinaRoja/357-tz-in-datetimes
357 Users set preferred timezone, used for readthroughs
2021-03-29 15:20:01 -07:00
Mouse Reeve
662ddf44b9 Avoid error when request Accept header is not set 2021-03-29 14:12:07 -07:00
Mouse Reeve
cc00a66b90
Merge pull request #800 from SavinaRoja/716-book-multiple-shelves
716 books can be on multiple shelves, but only on one shelf for reading status
2021-03-29 12:59:49 -07:00
Pablo Barton
b0dc5f3f93 357 Users set preferred timezone, used for readthroughs 2021-03-28 19:16:43 -04:00
Mouse Reeve
9a0568dabc Adds tests for server and users admin views 2021-03-28 14:36:57 -07:00
Mouse Reeve
c42719ee1e Fixes wildly high similiarity metrics in directory 2021-03-28 10:32:58 -07:00
Mouse Reeve
ef057dd573
Merge pull request #805 from mouse-reeve/shared-books
Adds shared books as a metric for recommending follows
2021-03-27 11:39:11 -07:00
Mouse Reeve
81925b11cf Removes duplicate patch annotation 2021-03-27 10:38:07 -07:00
Mouse Reeve
c398d8a870 Python formatting 2021-03-27 10:00:32 -07:00
Mouse Reeve
1341341a4f Adds test for annotated user helper 2021-03-27 09:56:46 -07:00
Mouse Reeve
c8118c9bf4 Updates activity streams tests 2021-03-26 12:52:04 -07:00
Pablo Barton
daf69d2375 716 books can be on multiple shelves, but only on one shelf for reading status 2021-03-26 08:21:42 -04:00
Mouse Reeve
ae6c2b6375 Updates tests 2021-03-24 14:19:12 -07:00
Mouse Reeve
81bd3f5be8 Tests not showing notifications for self boosts 2021-03-24 12:13:00 -07:00
Mouse Reeve
61a773cbe2 Python formatting 2021-03-24 11:01:23 -07:00
Mouse Reeve
c1e0471d1a Don't use html in article names for mastodon 2021-03-24 10:57:17 -07:00
Mouse Reeve
30cebc017f Updates tests to catch decimal/float/int errors in status serialization 2021-03-24 10:31:05 -07:00
Mouse Reeve
73e38f9050 Fixes formatting rating value in template 2021-03-24 10:07:39 -07:00
Mouse Reeve
701487c526 Fixes mocks on activitystreams tests 2021-03-23 15:03:05 -07:00
Mouse Reeve
3e888c17dd Fixes audience filters with tests 2021-03-23 14:59:51 -07:00
Mouse Reeve
0d88794f46 Python formatting 2021-03-23 13:07:29 -07:00
Mouse Reeve
5caac46c31 Updates updates tests 2021-03-23 13:02:45 -07:00
Mouse Reeve
28651bd804 Fixes views tests 2021-03-23 11:34:32 -07:00
Mouse Reeve
7f271dbde7 Fixes model tests 2021-03-23 10:41:18 -07:00
Mouse Reeve
9e23bfe7c0 Updates activitypub tests 2021-03-23 10:25:52 -07:00
Mouse Reeve
59deb1cd05 More mocks for more tests 2021-03-23 09:35:39 -07:00
Mouse Reeve
de2cea5ff2 Adds mocks for block tests 2021-03-23 09:14:31 -07:00
Mouse Reeve
2d350474bf Mocks redis in feed view tests 2021-03-23 09:09:30 -07:00
Mouse Reeve
b9ec6a1e2b Mocks redis for helpers tests 2021-03-23 09:00:04 -07:00
Mouse Reeve
f290e60b85 Improves signal handling and updates inbox tests 2021-03-23 08:53:28 -07:00
Mouse Reeve
1cf4c0d5cc Mocks redis in interaction tests 2021-03-23 08:27:24 -07:00
Mouse Reeve
73661b9472 Mocks redis in outbox tests 2021-03-23 08:19:25 -07:00
Mouse Reeve
ea71c2aa88 Fixes status views tests 2021-03-23 08:13:57 -07:00
Mouse Reeve
e17ee40800 Generalizes broadcast mock in status view tests 2021-03-23 07:28:44 -07:00
Mouse Reeve
7eb494b4ab Removes get activity feed function 2021-03-22 19:17:46 -07:00
Mouse Reeve
dedac83b5c Fixes model test 2021-03-21 17:18:42 -07:00
Mouse Reeve
01104581de Adds test for directory view 2021-03-21 16:50:03 -07:00
Mouse Reeve
3e75253ff1 Updates activitpub and tests for discoverability 2021-03-21 14:50:36 -07:00
Mouse Reeve
b29be11862 Updates reset password view test 2021-03-21 12:33:19 -07:00
Mouse Reeve
a0b106f6bb Adds emailing tests 2021-03-21 12:31:05 -07:00
Mouse Reeve
33b5639af0 Fixes tests 2021-03-21 09:20:37 -07:00
Mouse Reeve
5b8bd9ad44 Adds tests 2021-03-21 08:24:59 -07:00
Fabien Basmaison
4a7c0cd184 Fix indentation in bookwyrm/tests/data/ol_isbn_search.json. 2021-03-20 15:36:25 +01:00
Mouse Reeve
e92a506e61 Upload cover via url form edit book view 2021-03-19 10:29:34 -07:00
Mouse Reeve
a8545e2701 Adds tests for upload cover view
bonus test for user view
2021-03-19 09:20:48 -07:00
Mouse Reeve
0550918e5c
Merge pull request #744 from mouse-reeve/images
Fixes image attachments
2021-03-15 16:02:29 -07:00
Mouse Reeve
bb8ce74f52 Updates base activity tests for updated Image type 2021-03-15 15:57:00 -07:00
Mouse Reeve
5a24c97cb5 Updates image type in fields tests 2021-03-15 15:45:18 -07:00
Mouse Reeve
20bcbb1a3c Updates image type to Document in status model tests 2021-03-15 15:44:26 -07:00
Mouse Reeve
0037a22cb6 Updates list tests 2021-03-15 15:41:11 -07:00
Mouse Reeve
220f2c1eb4 Fixes image attachments 2021-03-15 13:55:48 -07:00
Mouse Reeve
8e71186067 Fixes adding mutiple authors 2021-03-13 18:09:09 -08:00
Mouse Reeve
54682d6f5c Formatting 2021-03-13 15:36:00 -08:00
Mouse Reeve
6490a55274 Handle incoming follow request cancellations 2021-03-13 15:32:56 -08:00
Mouse Reeve
e2d394d894 Checks activity type in view test 2021-03-13 15:04:23 -08:00
Mouse Reeve
6e5f2f411f
Merge pull request #728 from mouse-reeve/wellknown-view
Moves federation info endpoints into views module
2021-03-13 11:11:28 -08:00
Mouse Reeve
1f2da18655 Adds test for updates endpoint 2021-03-13 11:11:06 -08:00
Mouse Reeve
139416d9c3 Moves federation info endpoints into views module 2021-03-13 11:00:55 -08:00
Mouse Reeve
78df37a861
Merge pull request #727 from mouse-reeve/connector-tests
Connector tests
2021-03-13 10:24:40 -08:00
Mouse Reeve
76f1643269 Tests ignore edition openlibrary connector code
also removes print statements oops
2021-03-13 10:11:13 -08:00
Mouse Reeve
414dd6bd20 Adds isbn search test to connector manager 2021-03-13 10:01:17 -08:00
Mouse Reeve
6b22de2075 More tests for bookwyrm connector 2021-03-13 09:43:15 -08:00
Mouse Reeve
382170d662 Adds get_or_create_author abstract connector test 2021-03-13 09:28:48 -08:00
Mouse Reeve
393ea625a2
Merge pull request #726 from mouse-reeve/search-tests
Search tests
2021-03-13 09:27:46 -08:00
Mouse Reeve
d3b1941eaa Uses get_data helper in isbn search (plus test) 2021-03-13 09:07:19 -08:00
Mouse Reeve
a1d95d5010
Merge pull request #725 from mouse-reeve/incoming-unshelve
Fixes handling incoming unshelve activities
2021-03-13 08:53:37 -08:00
Mouse Reeve
e459c440de tests formulating search queries with min_confidence field 2021-03-13 08:52:48 -08:00
Mouse Reeve
e1a8c4d260 Fixes handling incoming unshelve activities 2021-03-13 08:43:36 -08:00
Mouse Reeve
919b166241 Catch error in serializing unknown boosts 2021-03-13 08:13:20 -08:00
Mouse Reeve
1f4b3e9586 Adds tests for status recipients property 2021-03-13 07:38:19 -08:00
Mouse Reeve
2548ba926a Fixes error when receiving Undo for unknown boost 2021-03-13 07:15:30 -08:00
Mouse Reeve
b64fb3e0aa
Merge pull request #715 from mouse-reeve/reporting
Reporting
2021-03-12 16:28:15 -08:00
Mouse Reeve
7323f63803 Adds test for report comments 2021-03-12 16:02:23 -08:00
Mouse Reeve
46581e37e2 Mocks boradcast for moderation test 2021-03-12 15:24:57 -08:00
Mouse Reeve
8c74beb78c Allow moderators to delete reported statuses 2021-03-12 11:25:56 -08:00
Mouse Reeve
677a49fee3 Option to deactivate reported users 2021-03-12 11:13:53 -08:00
Mouse Reeve
bedc9e0a88 Resolve and re-open reports 2021-03-12 10:22:03 -08:00
Mouse Reeve
21f199c548 Make reports 2021-03-08 18:36:50 -08:00
Mouse Reeve
e59c127686 Adds models for reporting 2021-03-08 17:16:59 -08:00
Mouse Reeve
7337a357fa Adds tests file 2021-03-08 16:02:16 -08:00
Mouse Reeve
500394fc52 Make sure creating books doesn't broadcast in tests 2021-03-08 11:54:26 -08:00
Mouse Reeve
37e29cc735 Adds tests of creating book with author 2021-03-08 11:11:05 -08:00
Mouse Reeve
58b48faff8 Tests create books flow 2021-03-08 10:50:01 -08:00
Mouse Reeve
acbebbe947 Formats code changes 2021-03-08 10:10:30 -08:00
Mouse Reeve
01a2a77cbb
Merge branch 'main' into create-book 2021-03-08 10:07:02 -08:00
Mouse Reeve
d3162e12db Adds broadcast mock to edit book tests 2021-03-08 08:51:54 -08:00
Mouse Reeve
70296e760b Runs black 2021-03-08 08:49:10 -08:00
Mouse Reeve
6d9c024e0e Merge branch 'main' into create-book 2021-03-07 15:49:00 -08:00
Mouse Reeve
1eac2b9386 Test for deleting authors 2021-03-07 15:14:57 -08:00
Mouse Reeve
f1b699d810 Tests adding author to book 2021-03-07 13:59:27 -08:00
Mouse Reeve
410e0b04bb Fixes fav logic and base activity test 2021-03-07 13:13:16 -08:00
Mouse Reeve
47cf77145d Updates tests for inbox tweaks 2021-03-07 09:48:39 -08:00
Mouse Reeve
e5bdb4b9d1 Make empty cover value null 2021-03-07 07:35:50 -08:00
Henri Bourcereau
703ff60271 isbn search 2021-03-06 18:09:15 +01:00
Mouse Reeve
91a14d3a13 Updates alt text in status model tests 2021-03-05 07:50:23 -08:00
Mouse Reeve
b70e728ffb Removes the word "cover" from cover alt text
Fixes #694
2021-03-05 06:58:22 -08:00
Mouse Reeve
5c089db086 Full add author flow 2021-03-04 17:10:33 -08:00
Mouse Reeve
b2d1384bc5 UI for adding and removing authors 2021-03-04 15:10:55 -08:00
Mouse Reeve
04ed5d62dd
Merge pull request #649 from mmai/feature/importLibrarything
librarything import
2021-02-27 12:17:41 -08:00
Henri Bourcereau
bfedb300ca librarything import : fix parsing & select box 2021-02-26 13:32:17 +01:00
Mouse Reeve
0ecfff0f16
Merge pull request #625 from mouse-reeve/inbox-refactor
Inbox refactor
2021-02-24 13:34:59 -08:00
Mouse Reeve
a5ee535ab6 fixes book reviews queryset aggregators 2021-02-24 12:29:50 -08:00
Mouse Reeve
2a5d4b83d8 Show dms in the right places 2021-02-24 11:59:21 -08:00
Henri Bourcereau
b85fed3595 librarything import 2021-02-24 20:20:14 +01:00
Mouse Reeve
94e95dc39d Adds test for delete activity 2021-02-24 10:07:03 -08:00
Mouse Reeve
cad19ee878 Merge branch 'main' into inbox-refactor 2021-02-24 09:51:34 -08:00
Mouse Reeve
6426282db1 fixes goal page and test for goal page 2021-02-23 22:07:13 -08:00