Commit graph

802 commits

Author SHA1 Message Date
Mouse Reeve
973b23856c
Merge branch 'main' into opengraph-image-generation 2021-06-17 15:17:54 -07:00
Mouse Reeve
2a6339cf21 Fixes redis interaction mock 2021-06-17 13:10:01 -07:00
Mouse Reeve
8b657bbcb1 Updates model test 2021-06-17 12:58:37 -07:00
Mouse Reeve
75df210193 Python formatting 2021-06-14 17:01:53 -07:00
Mouse Reeve
8946332023 More fixes for more tests 2021-06-14 16:56:47 -07:00
Mouse Reeve
c3a09a6331 More test fixes 2021-06-14 16:39:54 -07:00
Mouse Reeve
ef71da7ef0 Fixes interaction tests 2021-06-14 16:23:17 -07:00
Mouse Reeve
e98138e84f Show users as deleted in admin view 2021-06-14 11:38:54 -07:00
Mouse Reeve
607bfa9160 Python formatting 2021-06-14 11:16:41 -07:00
Mouse Reeve
557aa2005b Adds test for delete view 2021-06-14 11:15:00 -07:00
Mouse Reeve
7ae64c2a68 Splits user view out and adds template 2021-06-14 10:01:21 -07:00
Mouse Reeve
a4afbccb3a Fixes straggling reading view test name 2021-06-09 11:36:17 -07:00
Mouse Reeve
ce4a57e5c9 Reading status view name 2021-06-09 11:16:52 -07:00
Mouse Reeve
4107f7ddf1 Updates readthrough tests 2021-06-09 11:07:15 -07:00
Mouse Reeve
113ced2900 Merge reading status views into one view 2021-06-09 10:53:52 -07:00
Mouse Reeve
625ab46059 Removes start reading with progress test
There's no way to do this from the ui???? I don't tihnk there ever
was???
2021-06-08 15:03:50 -07:00
Mouse Reeve
a00fdc6864 Updates tests for reading views 2021-06-08 14:42:55 -07:00
Joachim
cd7c0ccaea Enable env on GitHub Actions 2021-05-29 15:51:56 +02:00
Joachim
ba39dad06c Add save_and_cleanup test 2021-05-29 15:32:04 +02:00
Joachim
cc0881b11c Try another way 2021-05-29 12:33:04 +02:00
Joachim
b4e2d8c6e3 Better refresh object in test 2021-05-29 11:17:59 +02:00
Joachim
872084d61a Update test_preview_images.py 2021-05-28 23:41:41 +02:00
Joachim
9cee119200 test 2021-05-28 23:29:28 +02:00
Joachim
2bf254bce7 Update test_preview_images.py 2021-05-28 21:26:13 +02:00
Joachim
ec159ebcb0 Test generating preview images 2021-05-28 21:24:45 +02:00
Mouse Reeve
b29ca22227 A couple test mocks 2021-05-27 17:29:24 -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
07fc4a2efc
Merge branch 'main' into suggestions-redis 2021-05-20 20:25:15 -07:00
Mouse Reeve
6cadba78fe Python formatting 2021-05-20 16:38:12 -07:00
Mouse Reeve
ab3fb4d555 Adds test for search with no query 2021-05-20 16:32:44 -07:00
Mouse Reeve
ff3c4b8e73 Fixes announcement view test 2021-05-20 13:42:30 -07:00
Mouse Reeve
cefc5994a6 Makes extra content optional 2021-05-20 12:40:03 -07:00
Mouse Reeve
fdb315d2ac Adds individual announcement page test 2021-05-20 12:14:57 -07:00
Mouse Reeve
44e8db3f33 Adds view test for announcements admin page 2021-05-20 12:12:11 -07:00
Mouse Reeve
0c0dcc57d6 Adjusts line length 2021-05-18 12:51:57 -07:00
Mouse Reeve
097659a627
Merge pull request #1075 from bookwyrm-social/disable-connectors
Disable related connector when an instance is blocked
2021-05-18 12:41:09 -07:00
Mouse Reeve
82117a7d28 Tests deactivating connectors 2021-05-18 12:29:01 -07:00
Mouse Reeve
3d7f3f34c1 Fixes book view test 2021-05-18 11:36:50 -07:00
Mouse Reeve
3c7882b055 Fixes abstract minimal connector test 2021-05-14 16:13:32 -07:00
Mouse Reeve
865faf6714 Fixes tests 2021-05-11 15:52:41 -07:00
Mouse Reeve
acd26012be Removes more unused filters 2021-05-11 14:12:28 -07:00
Mouse Reeve
f5eb5f982a Removes filter for checking for follow requests 2021-05-11 14:05:46 -07:00
Mouse Reeve
3de8ae00ae Removes unused templatetag 2021-05-11 14:00:23 -07:00
Mouse Reeve
04cc2fb3f3 Removes unused dict_key filter 2021-05-11 13:55:46 -07:00
Mouse Reeve
e7c5b77b4c Removes unused connector fields and adds active boolean 2021-05-11 09:54:04 -07:00
Mouse Reeve
92e2c70baf Fixes list sorting by rating 2021-05-10 18:28:31 -07:00
Mouse Reeve
6dae4ebd6f Splits list tests into two files and adds user list page tests 2021-05-10 17:44:19 -07:00
Mouse Reeve
13dc5efe71 More comprehensive tests for connector search 2021-05-10 12:53:36 -07:00
Mouse Reeve
f0cb82dd26
Merge pull request #1050 from bookwyrm-social/urls
Use reverse lookups for urls
2021-05-04 10:45:41 -07:00
Mouse Reeve
5906588c86 Fixes shelf add test 2021-05-04 10:33:16 -07:00
Mouse Reeve
c9ed069121 Use example url in test 2021-05-04 09:47:00 -07:00
Mouse Reeve
7bbef1d193 Removes outdated test 2021-05-04 09:42:00 -07:00
Mouse Reeve
df1c324d2d Updates test 2021-05-03 10:46:02 -07:00
Mouse Reeve
97aeaa9cd7 Uses empty queryset for forced no results mode 2021-05-01 19:05:46 -07:00
Mouse Reeve
f94a3ec63b Mocks list create in test 2021-05-01 18:05:21 -07:00
Mouse Reeve
64b54510d9 Updates unit tests 2021-05-01 10:39:05 -07:00
Mouse Reeve
a502a0c51d
Merge branch 'main' into following-display 2021-04-30 13:40:01 -07:00
Mouse Reeve
122e0cbd6d Python formatting 2021-04-30 12:52:20 -07:00
Mouse Reeve
485d20696b Fixes loading inventaire data by language code 2021-04-30 12:50:35 -07:00
Mouse Reeve
4b53342fd2 Fixes mock in unit test 2021-04-30 11:26:02 -07:00
Mouse Reeve
ca12359bee Fixes unit tests 2021-04-30 10:16:24 -07:00
Mouse Reeve
4dacf4df3a Refactor get_user_from_username to raise 404 directly 2021-04-30 09:33:36 -07:00
Mouse Reeve
e126c13ff7
Merge pull request #1018 from bookwyrm-social/fix-rating
Test for failing rate federation
2021-04-29 15:29:19 -07: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
3feba60665 Fixes test 2021-04-29 13:54:17 -07:00
Mouse Reeve
6983018d5e Merge branch 'main' into suggested_user_logic 2021-04-29 13:42:05 -07:00
Mouse Reeve
8d38d1c9d1 Python formatting 2021-04-29 09:56:35 -07:00
Mouse Reeve
f4800307b4 Adds isbn search 2021-04-29 09:54:42 -07:00
Mouse Reeve
0a41503572 Adds a couple more tests and test data 2021-04-29 09:06:17 -07:00
Mouse Reeve
fc095a087c Adds search result test 2021-04-29 08:36:49 -07:00
Mouse Reeve
5e5392c007 Adds test file 2021-04-28 17:20:14 -07:00
Mouse Reeve
6551c59c45 Don't store default edition in the dataase 2021-04-28 16:05:17 -07:00
Mouse Reeve
e2b43bbd6d Fixes unit test 2021-04-28 09:33:38 -07:00
Mouse Reeve
ce0e90d472
Merge pull request #961 from bookwyrm-social/django-3-2
Update to django 3.2
2021-04-26 14:08:39 -07:00
Mouse Reeve
674c4a99df Adds missing data file 2021-04-26 13:56:09 -07:00
Mouse Reeve
55eb1c4526 Fixes model name 2021-04-26 13:50:43 -07:00
Mouse Reeve
4deb94714c Adds test for import rating 2021-04-26 13:49:19 -07:00
Mouse Reeve
7006f30ac8 Uses unique test model name 2021-04-26 11:51:17 -07:00
Mouse Reeve
ff8601f329 Fixes spacing for new Black release 2021-04-26 11:37:07 -07:00
Mouse Reeve
b16ac91b16 Python formatting 2021-04-26 11:34:04 -07:00
Mouse Reeve
cd869dde09 Fixes tests of bookwyrm abstract model 2021-04-26 11:28:33 -07:00
Mouse Reeve
32b3a02a17 Fixes reverse rank calculation 2021-04-26 11:14:26 -07:00
Mouse Reeve
3ade2d3bb1 New version of black, new whitespace 2021-04-26 09:15:42 -07:00
Mouse Reeve
cbdf573261
Merge pull request #991 from bookwyrm-social/character-encoding
Fixes character encoding bug
2021-04-23 12:06:04 -07:00
Mouse Reeve
013d5f1db3
Merge pull request #987 from bookwyrm-social/duplicate-boosts
Don't broadcast boosts twice
2021-04-23 11:58:01 -07:00
Mouse Reeve
c907b1ff09 Test to replicate character encoding bug 2021-04-23 11:07:19 -07:00
Mouse Reeve
32e694032b Fixes duplicate boost model verification 2021-04-23 10:49:17 -07:00
Mouse Reeve
563623616c Merge branch 'main' into remove-tags 2021-04-22 18:18:24 -07:00
Mouse Reeve
9148f36719 Fixes duplicate boosts 2021-04-22 18:16:00 -07:00
Mouse Reeve
c455585262 Adds missing data file 2021-04-22 10:30:00 -07:00
Mouse Reeve
a797b68558 Adds test that replicates follower deletion bug 2021-04-22 10:22:37 -07:00
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