Commit graph

459 commits

Author SHA1 Message Date
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
Mouse Reeve
4d0e52bf51 Test tag and list add 2021-02-23 17:18:25 -08:00
Mouse Reeve
6e6bcb2f48 gotta simplify the add activity 2021-02-23 15:51:02 -08:00
Mouse Reeve
e042805f38
Merge pull request #632 from mouse-reeve/remote-server-set
Safer set remote server
2021-02-23 15:13:32 -08:00
Mouse Reeve
3de8a20d39 Fixes boolean for is bookwyrm user in test 2021-02-23 14:36:24 -08:00
Mouse Reeve
fdbd3688f4
Merge pull request #636 from mouse-reeve/follow-block-button
Cleans up display of follow/block/unfollow/unblock buttons
2021-02-23 13:38:02 -08:00
Mouse Reeve
9ac332f6cc Adds request user for rss test 2021-02-23 13:26:44 -08:00
Mouse Reeve
be9198fc4f Another place where get reviews is called in tests 2021-02-23 13:09:39 -08:00
Mouse Reeve
364b053d9a Better user block privacy 2021-02-23 12:41:37 -08:00
Mouse Reeve
c6a61abf79 Don't try to fetch reviews for remote user in test 2021-02-23 11:58:01 -08:00
Mouse Reeve
6e09d485c4 Outbox sensitive to user agent strings 2021-02-23 11:34:15 -08:00
Mouse Reeve
ef9acaf878 Adds tests for setting remote server 2021-02-22 11:38:11 -08:00
Mouse Reeve
dbe9431d5a Fixes pure serializer 2021-02-20 11:24:41 -08:00
Mouse Reeve
e707374888 Don't broadcast from inbox tests 2021-02-17 14:37:20 -08:00
Mouse Reeve
3f02b5f6f2 Fixes view tests 2021-02-17 13:34:36 -08:00
Mouse Reeve
e8e4ed773c Fixes deletion for boosts 2021-02-17 13:07:19 -08:00
Mouse Reeve
7b21a0a208 Fix things, unfix things, refix things, break things, fix things 2021-02-17 12:23:55 -08:00
Mouse Reeve
08dc5b4d86 Fixes unfollow 2021-02-17 11:45:21 -08:00
Mouse Reeve
d022fef625 broadcast accepts correctly 2021-02-17 11:28:54 -08:00
Mouse Reeve
d5ca77362b Fixes boost activity type in status model test 2021-02-17 10:38:09 -08:00
Mouse Reeve
9225043b5d Fixes relationship model test 2021-02-17 10:16:17 -08:00
Mouse Reeve
cbf5479253 Test fixes 2021-02-17 08:35:17 -08:00
Mouse Reeve
29df2e0fac fixes typo in person test 2021-02-16 20:26:51 -08:00
Mouse Reeve
77781d57c3 Fixes base activity tests 2021-02-16 20:24:37 -08:00
Mouse Reeve
a9ca3a4290 Fixes calls to to_model, init with activitypub partially serialized 2021-02-16 20:17:38 -08:00
Mouse Reeve
3f61675a0a Updates usage of resolve_remote_id 2021-02-16 19:35:43 -08:00
Mouse Reeve
91908eb1b6 Smarter way of inferring serializers (which are explicitly present) 2021-02-16 18:59:50 -08:00
Mouse Reeve
a3b7063e4b makes inbox csrf exempt 2021-02-16 18:07:57 -08:00
Mouse Reeve
714202986d Fixes person/author confusion and public keys 2021-02-16 17:47:53 -08:00
Mouse Reeve
d81bfb6573 Fixes unfollow 2021-02-16 16:35:28 -08:00
Mouse Reeve
b57a86d4e2 Fixes approving follow requests automatically 2021-02-16 12:58:29 -08:00
Mouse Reeve
f5a022184f Fixes discarding boosts 2021-02-16 12:31:27 -08:00
Mouse Reeve
3f1b62eb98 Fixes Add activity
still janky
2021-02-16 11:04:13 -08:00
Mouse Reeve
b393df8cab Fixes deletion 2021-02-16 09:35:00 -08:00
Mouse Reeve
08c1553e71 Fixes Favs 2021-02-15 21:41:08 -08:00
Mouse Reeve
606d89d3bd Fixes boost, recursive to_model calls 2021-02-15 21:20:00 -08:00
Mouse Reeve
a16b81a6eb Adds actions for all verbs 2021-02-15 20:49:23 -08:00
Mouse Reeve
12a3aa9667 incoming Create flow with tests 2021-02-15 19:41:22 -08:00
Mouse Reeve
81e2021f92 Move handlers to activitypub classes 2021-02-15 18:47:08 -08:00
Mouse Reeve
e810c2bee0 Recursively parse activities 2021-02-15 17:23:17 -08:00
Mouse Reeve
fd19b55961 Basic checks for inbox 2021-02-15 16:27:25 -08:00
Mouse Reeve
363609e7be Fixes follows
Yikes
2021-02-12 16:16:22 -08:00
Mouse Reeve
927cb15abd fixes edit user test 2021-02-11 12:42:54 -08:00
Mouse Reeve
47f371b604 Merge branch 'main' into user-view-test 2021-02-11 08:39:48 -08:00
Mouse Reeve
18a86cbe2a More edit user tests 2021-02-11 08:38:45 -08:00
Mouse Reeve
2a65aa7cc7 More tests 2021-02-10 18:24:09 -08:00
Mouse Reeve
b898f263b7 Another test case for the user view 2021-02-10 18:01:11 -08:00
Mouse Reeve
848454c50f Fixes templatetag test 2021-02-10 16:31:41 -08:00
Mouse Reeve
e0cfb009e4 Deduplicate notifications in notification model 2021-02-10 16:21:29 -08:00
Mouse Reeve
5565523d85 Tests bug in link formatting 2021-02-10 12:07:50 -08:00
Mouse Reeve
9c3bec23b8 More mocks in tests 2021-02-09 17:26:27 -08:00
Mouse Reeve
104e4d7cf7 Patch setup in status tests 2021-02-09 13:06:59 -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
0fd2885e7e Tests broadcasting from list views more thoroughly 2021-02-09 09:41:48 -08:00
Mouse Reeve
76e90cb3f6 Fixes remaining test patches 2021-02-08 09:38:28 -08:00
Mouse Reeve
80241e59a7 adds mocks to templatetags tests 2021-02-07 19:17:28 -08:00
Mouse Reeve
2fcfebd4e5 fixes broadcasting for incoming activities 2021-02-07 16:23:20 -08:00
Mouse Reeve
bf6aca5122 fixes mocks on tests 2021-02-07 11:29:24 -08:00
Mouse Reeve
ad7a045582 Makes shelbook user required 2021-02-07 11:29:13 -08:00
Mouse Reeve
6b10e487b6 adding mocks for views tests 2021-02-06 22:37:19 -08:00
Mouse Reeve
272685f27d sketchy fix for boost broadcasting 2021-02-06 21:30:43 -08:00
Mouse Reeve
63fe9777e2 Fixes shelf model tests 2021-02-06 21:02:58 -08:00
Mouse Reeve
b02a2c1aa4 broadcasting for follow, accept, and reject 2021-02-06 19:18:02 -08:00
Mouse Reeve
ffd0759f6f Fixes field and lists tests 2021-02-06 16:13:59 -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
Mouse Reeve
7381536ad6 circular import issues and added_by migration 2021-02-04 14:27:26 -08:00
Mouse Reeve
7faf639758 Fixes openlibrary connector test 2021-02-03 12:52:13 -08:00
Mouse Reeve
65f3333edb line length fix 2021-02-03 10:42:02 -08:00
Mouse Reeve
1b6dd666d9 Handling incoming list Creates and Updates 2021-02-03 10:34:27 -08:00
Mouse Reeve
18ef041a25 Fixes broadcast task patch on shelves tests 2021-02-02 15:19:44 -08:00
Mouse Reeve
b8dc307a6b Fixes mocking broadcast task in lists tests 2021-02-02 15:14:33 -08:00
Mouse Reeve
bbc05578fb Fixes tests 2021-02-02 14:59:40 -08:00
Mouse Reeve
6b07911a01 Patches broadcasts in list and shelf tests 2021-02-02 12:17:21 -08:00
Mouse Reeve
c7914d1394 Fixes search tests 2021-02-01 13:06:06 -08:00
Mouse Reeve
fd9b98d443 Fixes logged out list view 2021-01-31 13:38:26 -08:00
Mouse Reeve
5939a72c81 More list models tests 2021-01-31 13:31:49 -08:00
Mouse Reeve
19b56c26f7 list views tests 2021-01-31 13:12:56 -08:00
Mouse Reeve
47097c6b32 updates user rating tag 2021-01-31 12:10:10 -08:00
Mouse Reeve
4883231347 Fixes model test 2021-01-31 09:08:06 -08:00
Mouse Reeve
69c2b192a4 Adds list creation form 2021-01-31 08:08:52 -08:00
Mouse Reeve
91483b56f5 Adds views tests 2021-01-31 07:09:03 -08:00
Mouse Reeve
af65509527 stub test for list model 2021-01-30 21:03:50 -08:00
Mouse Reeve
a36de9026b
Merge pull request #575 from mouse-reeve/openlibrary-editions
Ignore openlibrary editions with little to no metadata
2021-01-30 17:49:54 -08:00
Mouse Reeve
9833f5a03d Tests creating editions 2021-01-30 17:44:42 -08:00
Mouse Reeve
b3bd6822b2 Make sure templates render rather than checking template paths 2021-01-30 12:30:03 -08:00
Mouse Reeve
ac4a178e83 Fixes shelf page template path bug 2021-01-30 12:03:50 -08:00
Mouse Reeve
9d3f48a1a9 Settings views tests 2021-01-29 17:06:10 -08:00
Mouse Reeve
21aadf2920 Adds site settings view 2021-01-29 15:38:42 -08:00
Mouse Reeve
640db7e9e3 Fixes more tests for moved-around views 2021-01-29 10:47:47 -08:00
Mouse Reeve
bae54b6847 Shuffles tests around for feed views 2021-01-29 10:33:44 -08:00
Mouse Reeve
cc5fedb1d1 Fixes template paths in views 2021-01-29 10:29:21 -08:00
Mouse Reeve
932acc961f Fixes template paths in tests 2021-01-29 09:41:32 -08:00
Mouse Reeve
e6a0e5f96c
Merge pull request #554 from bibliotechy/430-add-rss-support
First attempt at adding rss support
2021-01-29 08:09:32 -08:00
Chad Nelson
4274bf0508 Patch site settings so this can pass 2021-01-27 22:13:35 -05:00
Chad Nelson
9c2813545c Closer to some passing tests 2021-01-27 21:23:20 -05:00
Mouse Reeve
7d1c5fb0f2 Patches broadcast call in reading test 2021-01-27 11:01:36 -08:00
Mouse Reeve
c2d0c4b022 Adds missing init file for views tests
this is important!!
2021-01-27 09:31:11 -08:00
Mouse Reeve
b52aa5bee9 Fixes status tests 2021-01-27 09:31:01 -08:00
Mouse Reeve
e2935b6364 Fixes shelve tests 2021-01-27 09:27:29 -08:00
Mouse Reeve
662cbf2da9
Merge pull request #555 from mouse-reeve/blocking
Blocking
2021-01-26 14:43:01 -08:00
Mouse Reeve
36486ca731 block/unblock view tests 2021-01-26 13:02:14 -08:00
Mouse Reeve
22e4138555 unblock 2021-01-26 13:00:36 -08:00
Mouse Reeve
acfc865d4e Adds blocked users view
also refactors the setting view
2021-01-26 10:01:50 -08:00
Mouse Reeve
3f011445e2 Hide user pages to blocked users 2021-01-26 08:31:55 -08:00
Mouse Reeve
2a6a000e05 Moves avatar crop into function and adds test 2021-01-26 08:03:16 -08:00
Mouse Reeve
4e0ec12052 hide blocked content from feed 2021-01-24 16:13:26 -08:00
Mouse Reeve
6cc29a6cf8 Hide content from blocked users 2021-01-23 11:40:41 -08:00
Mouse Reeve
cc8888dea2 Adds incoming handler for blocking 2021-01-23 11:03:10 -08:00
Chad Nelson
0fe2e7a356 First pass at basic RSS 2021-01-23 09:48:34 -05:00
Mouse Reeve
6c52afeae0
Merge pull request #354 from cincodenada/progress_update
Keep track of progress through books over time
2021-01-21 16:57:16 -08:00
Joel Bradshaw
070fa04b63 Add validators and more tests
I don't think these validators will do anything unless we use them or
are submitting a form, but they're there nonetheless
2021-01-19 23:40:11 -08:00
Joel Bradshaw
32346cf9a3 Cascade-delete progress updates
Add a warning about it, and update test to confirm it works
2021-01-19 22:36:44 -08:00
Mouse Reeve
9f2ca73a58 Tests terminal space in mentions string 2021-01-19 16:48:06 -08:00
Joel Bradshaw
60b42827f4 Mock the AP publishing to stop hanging tests 2021-01-18 20:00:04 -08:00
Joel Bradshaw
49893f49e1 Merge fixes 2021-01-17 13:09:49 -08:00
Joel Bradshaw
a4519d55c9 Merge branch 'main' into progress_update 2021-01-17 13:05:38 -08:00
Mouse Reeve
8532c9a46b tests goal views 2021-01-16 13:29:28 -08:00
Joel Bradshaw
1e13997c5d Create an actual user, add missing file
Also allow `./bw-dev up -d`

I'm not sure why this was necessary, but it makes enough sense
2021-01-13 23:02:56 -08:00
Joel Bradshaw
48147883ce Merge branch 'main' into progress_update 2021-01-13 19:53:26 -08:00
Mouse Reeve
0a9757bf01 A few more templatetag tests 2021-01-13 19:28:44 -08:00
Mouse Reeve
c0ce38a9d3 landing page tests 2021-01-13 18:48:50 -08:00
Mouse Reeve
7d6a06025e Adds more reading tests 2021-01-13 18:02:01 -08:00
Mouse Reeve
3eceb1e2b8 Fixes interaction tests 2021-01-13 14:31:52 -08:00
Mouse Reeve
90933fa81d Fixes goodreads import tests 2021-01-13 14:02:01 -08:00
Mouse Reeve
e32a31e020 Fixes tests 2021-01-13 13:54:15 -08:00
Mouse Reeve
a385aa4cb5 Following views 2021-01-13 13:06:26 -08:00
Mouse Reeve
2e61bd0e7a Removes old views file 2021-01-13 12:18:19 -08:00
Mouse Reeve
b6bdfab943 Search class views 2021-01-13 12:05:01 -08:00
Mouse Reeve
beeeaaaf39 Adds shelf views 2021-01-13 11:45:08 -08:00
Mouse Reeve
20e280e676 Adds tag class views 2021-01-13 10:24:24 -08:00
Mouse Reeve
99abb2631e Adds author view 2021-01-13 10:04:44 -08:00
Mouse Reeve
56e3e98bc1 Adds book class view and re-works pagination 2021-01-13 09:51:51 -08:00
Mouse Reeve
cf2b9937c6 Adds fav/boost class view 2021-01-13 08:10:50 -08:00
Mouse Reeve
c8efa1ffc8 Fixes status tests and adds delete test 2021-01-13 08:04:43 -08:00
Mouse Reeve
5596277d29 tests status class view 2021-01-12 14:43:59 -08:00
Mouse Reeve
6c80b128a4 Adds status tests 2021-01-12 14:02:38 -08:00
Mouse Reeve
4ec64c02f4 Adds status views 2021-01-12 13:47:00 -08:00
Mouse Reeve
85d01d5df0 Moves user views to class view 2021-01-12 12:09:23 -08:00
Mouse Reeve
8693895bc6 Adds import view 2021-01-12 11:28:03 -08:00
Mouse Reeve
b61544b5f5 DM and notification views 2021-01-12 11:11:22 -08:00
Mouse Reeve
aa8b2c2f2b Creates landing page views 2021-01-12 10:44:17 -08:00
Mouse Reeve
fd6603ee07 Invite views 2021-01-12 10:19:58 -08:00
Mouse Reeve
65fa08633f Fixes authentication tests 2021-01-12 10:14:24 -08:00
Mouse Reeve
a2d7a97dc3 Updates tests 2021-01-12 09:09:05 -08:00