Commit graph

883 commits

Author SHA1 Message Date
Mouse Reeve
9988a3e82b More test fixes 2021-09-06 18:58:45 -07:00
Mouse Reeve
c56a9021b6 A few more failing tests 2021-09-06 18:55:48 -07:00
Mouse Reeve
2653458e56 another round of mocks 2021-09-06 18:40:12 -07:00
Mouse Reeve
59400511c9 mocks mocks more mocks 2021-09-06 17:55:44 -07:00
Mouse Reeve
db34918347 Updates user view test 2021-09-06 16:33:21 -07:00
Mouse Reeve
4ea9637a2d Updates activitystreams tests 2021-09-06 16:16:45 -07:00
Mouse Reeve
38dc640dd5 Mock for goodreads import test` 2021-09-06 15:10:52 -07:00
Mouse Reeve
227b72eaf9 Fixes mocks syntax 2021-09-06 15:09:04 -07:00
Mouse Reeve
72d5238590 More mocks 2021-09-06 14:50:33 -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
a8973336d9 Adds mock to list items creation 2021-09-06 12:58:18 -07:00
Mouse Reeve
8382d1a684 Updates tests 2021-09-06 12:31:13 -07:00
Mouse Reeve
cb21099e0b Fixes serialization of delete activity 2021-09-06 12:00:10 -07:00
Mouse Reeve
ae81d6cf71 More tests 2021-09-06 11:55:04 -07:00
Mouse Reeve
c4f2d67048 Adds view tests 2021-09-06 11:17:36 -07:00
Mouse Reeve
ccc41deb36 Retain whitespace in split for detecting urls 2021-09-02 13:36:01 -07:00
reesporte
4f321e5f33 fix link formatting issue, for real this time 2021-08-30 14:23:04 -05:00
reesporte
6e628fed38 formatting 2021-08-30 11:38:00 -05:00
reesporte
aa946e3ab7 add more test cases for link formatting 2021-08-30 11:12:27 -05:00
Mouse Reeve
57ef1522b5 Merge branch 'main' into readthrough-dates 2021-08-29 11:18:35 -07:00
Mouse Reeve
fc40c45591
Merge pull request #1339 from bookwyrm-social/privacy
Fixes parsing privacy fields from federated posts
2021-08-29 10:52:36 -07:00
Mouse Reeve
8629c4450c Adds test for user followers field from AP 2021-08-28 12:20:43 -07:00
Mouse Reeve
a5dcc0e5e4 Support multiple possible fields that indicate user ownership 2021-08-28 12:11:15 -07:00
Mouse Reeve
9c4fd1e602 Set user default values 2021-08-28 12:06:03 -07:00
Mouse Reeve
1e675384bc Updates user model test 2021-08-28 11:58:41 -07:00
Mouse Reeve
e4b5890992 Updates field tests 2021-08-28 11:41:33 -07:00
Mouse Reeve
41ed5f3103
Merge pull request #1337 from bookwyrm-social/feed-logic
Feed logic
2021-08-28 11:29:37 -07:00
Mouse Reeve
dc72df7339 Generate likely followers url for existing users 2021-08-28 11:15:17 -07:00
Mouse Reeve
f308b7793d Adds test for followers only privacy level 2021-08-28 10:08:41 -07:00
Mouse Reeve
e1af13d038 Adds test 2021-08-28 09:55:06 -07:00
D Anzorge
92b96afc2d Make webfinger match usernames in case insensitive manner 2021-08-27 21:27:54 +02:00
Mouse Reeve
497b54c014 Updates test 2021-08-27 11:38:34 -07:00
Mouse Reeve
e129b9c1f1 Adds more readthrough model tests 2021-08-27 11:16:51 -07:00
Mouse Reeve
016930fd0c
Merge pull request #1327 from bookwyrm-social/lists
Bookmark lists
2021-08-23 16:54:36 -06:00
Mouse Reeve
473ad5ffba Fixes tests 2021-08-23 15:35:51 -07:00
Mouse Reeve
b7fb55e6ad Fixes test for login redirected view 2021-08-23 14:53:48 -07:00
Mouse Reeve
47dbcc3af0 Adds views test 2021-08-23 14:15:19 -07:00
Mouse Reeve
d3cfceafca Mocks creation of boost 2021-08-23 13:58:19 -07:00
Mouse Reeve
9c21f4d8e6 Adds tests for boosts in activitystreams 2021-08-23 10:44:38 -07:00
Mouse Reeve
fc9613b975
Merge pull request #1305 from bookwyrm-social/search-editions
Search editions
2021-08-17 13:26:20 -06:00
Mouse Reeve
cb4c6100aa Adds tests 2021-08-17 11:49:29 -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
5de3c75de3 Remove render from tests 2021-08-16 10:30:11 -07:00
Mouse Reeve
b8082ad233 Merge branch 'main' into rss 2021-08-16 10:25:33 -07:00
Mouse Reeve
7345b85ebd Granular RSS tests 2021-08-16 10:25:21 -07:00
Mouse Reeve
fd56379518 Updates rss feed view 2021-08-09 07:38:43 -07:00
Mouse Reeve
820eeeb69a Lowercase "rate" 2021-08-09 07:29:08 -07:00
Mouse Reeve
0462a3b0fc
Merge pull request #1266 from bookwyrm-social/discover-local
Adds local discover view
2021-08-08 16:09:15 -06:00
Mouse Reeve
c8e7e95c17 fixes logged out view test 2021-08-08 14:43:17 -07:00
Mouse Reeve
b7b780e45c Discover not directory wth??? 2021-08-08 14:17:02 -07:00
Mouse Reeve
e2f3c4602d test the correct view 2021-08-08 08:37:07 -07:00
Mouse Reeve
2222c28305 Adds discover view tests 2021-08-08 08:03:04 -07:00
Mouse Reeve
3ce59d13d3 Mocks populate streams task 2021-08-08 07:32:23 -07:00
Mouse Reeve
c685fb0296
Merge pull request #1265 from bookwyrm-social/generated-notes-activitystream
Fixes generated notes not appearing in books stream
2021-08-07 16:11:28 -06:00
Mouse Reeve
2eb37663b6 Adds mock to inbox test 2021-08-07 14:46:33 -07:00
Mouse Reeve
040758c833 Renames "discover" 2021-08-07 11:25:09 -07:00
Mouse Reeve
026c6ac025 Mocks emailer in registration test 2021-08-07 08:01:14 -07:00
Mouse Reeve
0fa9fd7331 Registration with confirm email tests 2021-08-07 07:28:24 -07:00
Mouse Reeve
e198e663d1 Fixes names of site settings field in tests 2021-08-06 18:48:16 -07:00
Mouse Reeve
98a98f8e69 Updates test env 2021-08-06 18:13:51 -07:00
Mouse Reeve
4d4a7bc20b
Merge pull request #1259 from bookwyrm-social/test-coverage
Test coverage
2021-08-06 19:07:48 -06:00
Mouse Reeve
cec6943069 Adds missing mock 2021-08-06 17:43:50 -07:00
Mouse Reeve
3082c4ce5c Tests invite create view 2021-08-06 11:55:20 -07:00
Mouse Reeve
568e30230a Adds start import view test 2021-08-06 11:43:55 -07:00
Mouse Reeve
0d2622e4ff Tests login view 2021-08-06 11:23:38 -07:00
Mouse Reeve
3abceb8563 Templatetag test 2021-08-06 10:33:14 -07:00
Mouse Reeve
9804d4cf51 Adds more book view tests 2021-08-06 10:19:38 -07:00
Mouse Reeve
d126d7ba91 Disable comically inefficient book count comparisons
Oops! Hopefully I can restore these in a way that doesn't break at even
a moderate scale
2021-08-06 08:43:05 -07:00
Mouse Reeve
6fa430efec
Merge pull request #1256 from bookwyrm-social/test-coverage
Adds misc tests to improve coverage
2021-08-05 20:52:35 -06:00
Mouse Reeve
48175023bc Mocks broadcast 2021-08-05 18:58:32 -07:00
Mouse Reeve
41742d6698 Adds inventaire get connector test 2021-08-05 18:16:23 -07:00
Mouse Reeve
d0114d2e83 Adds test for book add description view 2021-08-05 18:07:36 -07:00
Mouse Reeve
d390b395e6 fixes book mock in user view tests 2021-08-05 17:47:49 -07:00
Mouse Reeve
70a535adb7 Adds books stream mock 2021-08-05 17:19:39 -07:00
Mouse Reeve
f3a757951c Tests for books stream 2021-08-05 14:28:17 -07:00
Mouse Reeve
142d0da3b7 Removes outdated tests 2021-08-04 20:01:44 -07:00
Mouse Reeve
9d19092205 Updates tests 2021-08-04 18:22:06 -07:00
Mouse Reeve
708a813905
Merge pull request #1249 from bookwyrm-social/goal-page
Handle goal pages for unset years
2021-08-04 14:16:45 -06:00
Mouse Reeve
54f6da2382 Use current year in goal tests 2021-08-04 12:59:06 -07:00
Mouse Reeve
392eb83bb3 Fixes edit user view tests 2021-08-04 11:30:23 -07:00
Mouse Reeve
89acfa4f3e Patches stray redis calls 2021-08-04 08:50:50 -07:00
Mouse Reeve
cbf5747308 Mock mocks mocks 2021-08-03 21:59:48 -07:00
Mouse Reeve
630ee3b766 Mocks for user admin 2021-08-03 15:22:51 -07:00
Mouse Reeve
3970df312a Fixes inbox tests 2021-08-03 15:09:38 -07:00
Mouse Reeve
eeb8ae19db Python formatting 2021-08-03 14:05:52 -07:00
Mouse Reeve
f35855ce69 Moore moocks 2021-08-03 13:50:12 -07:00
Mouse Reeve
5d2324a4a0 Edit user test mocks 2021-08-03 13:03:24 -07:00
Mouse Reeve
c23f341980 Move annotated user function tests 2021-08-03 12:48:44 -07:00
Mouse Reeve
777d177c67 Adds more mocks 2021-08-03 12:41:41 -07:00
Mouse Reeve
ee9c5a2a4b Adds mock to fields 2021-08-03 12:33:42 -07:00
Mouse Reeve
ebc0680288 Fixes logic error in detecting changed fields when serializing 2021-08-03 12:21:11 -07:00
Mouse Reeve
b059cbdd18 Adds missing import and mock 2021-08-03 12:02:47 -07:00
Mouse Reeve
1aff6322ea Makes test user undiscoverable 2021-08-03 11:59:49 -07:00
Mouse Reeve
fc93e08767 Fixes missing mocks in suggested user test 2021-08-03 11:56:33 -07:00
Mouse Reeve
be044bce0d Updates mocks 2021-08-03 10:25:53 -07:00
Mouse Reeve
88967e589b Uses better mock pattern in relationships model 2021-08-03 09:46:04 -07:00
Mouse Reeve
cfbe1b29cd Pass update fields when ticking last active date 2021-08-03 09:12:22 -07:00
Mouse Reeve
a84a744e8d Track changed fields in activity to model code 2021-08-03 08:48:15 -07:00
Mouse Reeve
ee7bdc956a Streamline saves on user create 2021-08-03 07:43:03 -07:00
Mouse Reeve
62befa9295 Merge branch 'main' into suggestions-redis 2021-08-02 20:40:06 -07:00
Mouse Reeve
9093170660 Correct test structure 2021-08-02 20:16:17 -07:00
Mouse Reeve
39b2f37947 One (hopefully) last fix 2021-08-02 20:07:46 -07:00
Mouse Reeve
a334970692 Fixes path for image field in test 2021-08-02 20:00:02 -07:00
Mouse Reeve
68f9b67fd9 Updates test 2021-08-02 19:30:42 -07:00
Mouse Reeve
b7563ca221 Adds test 2021-08-02 19:01:23 -07:00
Mouse Reeve
dd6cce92f8 Merge branch 'main' into suggestions-redis 2021-08-02 17:49:48 -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
fc8db58cdb Merge branch 'main' into suggestions-redis 2021-08-02 16:40:57 -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
Joel Bradshaw
f867b1c81d Update tests for shelved_date
Also make dates while we're at it
2021-07-13 22:08:15 -07:00
Mouse Reeve
b41d9440fd Adds tests for ordered collection page generator 2021-07-07 10:53:25 -07:00
Mouse Reeve
b3cd9483d3 Adds test for misinterpreted links 2021-07-07 09:47:07 -07:00
Mouse Reeve
3238be4748 Restores weights to original calculation 2021-06-26 19:07:09 -07:00
Mouse Reeve
8844e46259 Removes stray print statement 2021-06-26 18:40:53 -07:00
Mouse Reeve
a3badc5700 Adds preview mock to postgres tests 2021-06-26 18:36:17 -07:00
Mouse Reeve
36fe64c3ae Fixes patch import in test 2021-06-26 16:48:57 -07:00
Mouse Reeve
6470033ac9 Fixes search query syntax
mad about the lack of django docs on this, jeez
2021-06-26 16:20:18 -07:00
Mouse Reeve
789f823d5d Fixes python formatting 2021-06-26 13:20:23 -07:00
Mouse Reeve
62b5a00102 Adds test mocks from psql tests 2021-06-26 13:13:12 -07:00
Mouse Reeve
e168720420 Adds test for stop word null state 2021-06-26 12:42:36 -07:00
Mouse Reeve
68fc5f2b5a Trigger search vector update when author is edited 2021-06-26 12:34:05 -07:00
Mouse Reeve
2fa5fabb7b Fixes default edition ranking test 2021-06-26 09:57:56 -07:00
Mouse Reeve
5b6048e4c6 Merge branch 'main' into suggestions-redis 2021-06-18 16:48:04 -07:00
Mouse Reeve
d8d6f57373 Linting fixes for preview image code 2021-06-18 15:08:36 -07:00
Joachim
e07672fff1 Fix tests 2021-06-18 18:28:24 +02:00
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