Commit graph

1168 commits

Author SHA1 Message Date
Mouse Reeve
63163ca0ff Python formatting 2021-10-16 11:23:45 -07:00
Mouse Reeve
851a8f6958 More registration tests 2021-10-16 11:15:57 -07:00
Mouse Reeve
3118cdfbb6 Adds another register test 2021-10-16 10:56:22 -07:00
Mouse Reeve
5e9cc5eec5 Validate remaining templates 2021-10-16 10:46:05 -07:00
Mouse Reeve
ea268449fa Python formatting 2021-10-16 10:38:45 -07:00
Mouse Reeve
68cbea60a9 Updates registration tests with html validation 2021-10-16 10:34:41 -07:00
Mouse Reeve
974c05dedb Adds more password view tests 2021-10-16 10:14:53 -07:00
Mouse Reeve
b56147d70c Use validate html in landing views tests 2021-10-16 10:09:25 -07:00
Mouse Reeve
584e0a54af Adds test to catch invalid link 2021-10-16 07:06:49 -07:00
Hugh Rundle
1736419538 (hopefully) fix group tests 2021-10-16 16:42:08 +11:00
Mouse Reeve
931f78d7c2 Validate author page html 2021-10-15 14:26:07 -07:00
Mouse Reeve
eac1ed3484
Merge pull request #1534 from bookwyrm-social/followers-display
Fixes privacy filters for followers-only replies
2021-10-15 13:38:42 -07:00
Mouse Reeve
66a2b4c7c7 Tests for status raise_visible_to_user function 2021-10-15 13:25:47 -07:00
Mouse Reeve
61a0b50b91 Test raw version is saved 2021-10-15 10:10:38 -07:00
Mouse Reeve
e8f5678867 More test names 2021-10-15 10:10:25 -07:00
Mouse Reeve
b9e6824360 Imrpove test names 2021-10-15 10:07:29 -07:00
Mouse Reeve
9ac5384d68 Fixes test and css linter 2021-10-15 09:54:14 -07:00
Mouse Reeve
1b1e557800 Updates app to use date instead of boolean 2021-10-15 09:08:10 -07:00
Mouse Reeve
20cca69f06 Test update status via inbox 2021-10-15 08:52:32 -07:00
Mouse Reeve
4002df04fc Send update activity on edit 2021-10-15 08:15:48 -07:00
Mouse Reeve
e43cade6cc Test edit view 2021-10-14 19:13:02 -07:00
Mouse Reeve
8a08d789cb Removes delete and redraft tests 2021-10-14 17:13:15 -07:00
Hugh Rundle
2a78c1221c style cleanup
Even tests must be formatted to please Black...
2021-10-10 12:33:11 +11:00
Hugh Rundle
8ae20928bb add tests for groups 2021-10-10 12:06:54 +11:00
Hugh Rundle
252ff0d689 emblacken files
Wouldn't it be great if I just remembered to run Black before every commit?
2021-10-09 22:15:24 +11:00
Hugh Rundle
39e002ee13 Merge remote-tracking branch 'origin/bookwyrm-groups' into bookwyrm-groups
Merge changes from main project into local branch
2021-10-08 18:53:59 +11:00
Hugh Rundle
5a4026cda3 group views tests 2021-10-08 18:47:03 +11:00
Hugh Rundle
3003b103e4 add group views tests
TODO: the POST test needs to test that the group was actually updated.
2021-10-08 08:38:00 +11:00
Mouse Reeve
73a8f89bee
Merge branch 'main' into bookwyrm-groups 2021-10-06 11:37:38 -07:00
Hugh Rundle
f8e0de1ea9 run black for clean code
Godammit Hugh remember to do this before pushing new code.
2021-10-05 21:32:48 +11:00
Hugh Rundle
b3dc81dea0 update tests 2021-10-05 21:29:46 +11:00
Hugh Rundle
cdf7775e05 add test for Group views 2021-10-05 21:06:09 +11:00
Mouse Reeve
ac70a810af Boosts by remote users 2021-10-04 09:58:05 -07:00
Mouse Reeve
321949f2fa Lightly updates tests 2021-10-04 09:47:33 -07:00
Mouse Reeve
443750d6db f strings for activistreams tasks tests 2021-10-04 09:14:04 -07:00
Mouse Reeve
668f71f96c Tests block and unblock activitystream signals 2021-10-03 11:45:19 -07:00
Mouse Reeve
ca7967a3a3 Adds test for remote search for anonymous user 2021-10-03 09:29:24 -07:00
Mouse Reeve
eaa77906b2
Merge pull request #1485 from bookwyrm-social/notifications
Refactors notifications templates
2021-10-02 11:41:18 -07:00
Mouse Reeve
446d286b12
Merge pull request #1483 from bookwyrm-social/threads
Threads
2021-10-02 11:41:10 -07:00
Mouse Reeve
0320898f4e Expands notifications views test 2021-10-02 10:42:38 -07:00
Mouse Reeve
f901806574 Test to ensure incoming statuses have thread ids 2021-10-01 14:56:38 -07:00
Mouse Reeve
0cd55147ee Set thread id on parent status 2021-10-01 14:41:30 -07:00
Mouse Reeve
7ff040470f Use more f strings in status models test file 2021-10-01 14:26:01 -07:00
Mouse Reeve
a24fe558fc
Merge pull request #1480 from bookwyrm-social/comment-formatting
Post-processes statuses composed in modals
2021-10-01 12:00:56 -07:00
Mouse Reeve
70bf7c522f Adds tests 2021-10-01 11:23:35 -07:00
Mouse Reeve
d2f80c2446 Adds test for reading status with comment 2021-10-01 10:57:56 -07:00
Mouse Reeve
7d03bfd2f6
Merge pull request #1477 from bookwyrm-social/add-edit-book
Updates for adding and editing books
2021-10-01 10:36:09 -07:00
Mouse Reeve
74d2cf646a Moves meta tags out of p tags
I guess that's not kosher
2021-10-01 10:25:23 -07:00
Mouse Reeve
0928fd03a6 Update mocks in editions tests 2021-10-01 10:08:31 -07:00
Mouse Reeve
a7614d8c35 Moves editions page tests into separate file 2021-10-01 09:24:10 -07:00
Mouse Reeve
34948d494c Python formatting 2021-09-30 22:23:29 -07:00
Mouse Reeve
bdb1d1998a Helper function for html validation 2021-09-30 22:22:20 -07:00
Mouse Reeve
9c78a9d95c test fixes 2021-09-30 22:02:07 -07:00
Mouse Reeve
ccc52287c5 More error filtering 2021-09-30 20:01:57 -07:00
Mouse Reeve
3f44389c6b Adds new test file for search 2021-09-30 13:03:36 -07:00
Mouse Reeve
92f9319fe1 Updates tests that reference self_connector 2021-09-30 11:46:17 -07:00
Mouse Reeve
1033d3d045 Updates connector tests 2021-09-30 11:33:04 -07:00
Mouse Reeve
5dd2aac600 Merge branch 'main' into search-refactor 2021-09-30 10:41:30 -07:00
Mouse Reeve
0dc6a18201 Skip unescaped chars warning in html validator
jankily
2021-09-29 15:47:30 -07:00
Mouse Reeve
47b08e7591 Moves tests into dirs and updates render checks 2021-09-29 14:21:57 -07:00
Mouse Reeve
cd2dcbc758
Merge pull request #1471 from bookwyrm-social/goal-cleanup
Improves html consistency for goal page
2021-09-29 10:25:34 -07:00
Mouse Reeve
002a9c4267
Merge pull request #1456 from Tak/add-cover-from-url-while-adding-book
Add cover from url while adding book
2021-09-29 08:56:05 -07:00
Mouse Reeve
701bf4828b Improves html consistency for goal page 2021-09-28 18:34:12 -07:00
Mouse Reeve
6dbd402345
Merge pull request #1469 from bookwyrm-social/user-shelf
Reorganize user/shelf/goal views code
2021-09-28 17:51:58 -07:00
Mouse Reeve
a1aa34a4a4 Limits additional user for test 2021-09-28 17:40:55 -07:00
Mouse Reeve
746d4bdba4 Validate html in user view tests 2021-09-28 17:31:13 -07:00
Mouse Reeve
5ea40e23b7 Moves shelf delete button 2021-09-28 17:17:01 -07:00
Mouse Reeve
6d9bf349d1 Fixes delete shelf logic and adds tests 2021-09-28 17:02:18 -07:00
Mouse Reeve
183e76eb2a Adds test for shelf 2021-09-28 16:18:32 -07:00
Mouse Reeve
4402fc6c14 HTML validation in tests 2021-09-28 15:55:35 -07:00
Mouse Reeve
5b3ff8469d Html validation fix for user admin view 2021-09-28 15:20:10 -07:00
Mouse Reeve
ada3e1d4d6 Adds options to html validator and fixes dl/dts 2021-09-28 15:02:24 -07:00
Mouse Reeve
2befef7deb Brings federation page html in line with html validator 2021-09-28 14:39:23 -07:00
Mouse Reeve
65d7f50811 Updates federation tests 2021-09-28 14:15:06 -07:00
Mouse Reeve
afcd296513 Test rendered html 2021-09-28 13:44:49 -07:00
Mouse Reeve
0fa0c1e2d9 Adds IP blocklist render test 2021-09-28 13:36:41 -07:00
Mouse Reeve
fa0e3cc112 Creates admin views test directory 2021-09-28 13:21:51 -07:00
Mouse Reeve
6266b58650 Updates static paths in tests 2021-09-28 12:02:09 -07:00
Mouse Reeve
c5d7c7dbff Updates block view path reference in test 2021-09-28 11:49:53 -07:00
Mouse Reeve
a9eb544bac Moves blocks views and tests into preferences dir 2021-09-28 11:44:53 -07:00
Mouse Reeve
461f834973 Move preferences test into their own directory 2021-09-28 11:41:40 -07:00
Mouse Reeve
e971638f14 Render test for change password view 2021-09-28 11:09:24 -07:00
Mouse Reeve
585c71e72a Adds html linting to test 2021-09-28 10:59:51 -07:00
Levi Bard
9db75cc5b7 Add test for creating a book with a cover url 2021-09-28 10:01:31 +02:00
Mouse Reeve
767d378170 Update status tests 2021-09-27 18:52:45 -07:00
Mouse Reeve
e0aa8a7fdf Fixes shelf view boolean logic 2021-09-27 17:58:21 -07:00
Mouse Reeve
56bf8d923f Updates goal and list tests 2021-09-27 17:52:10 -07:00
Mouse Reeve
6c0b1da83b Fixes feed tests 2021-09-27 17:32:54 -07:00
Mouse Reeve
c874a762dd Updates inbox view 2021-09-27 17:27:17 -07:00
Mouse Reeve
62ff9d6199 Python formatting 2021-09-27 16:08:52 -07:00
Mouse Reeve
af2f78095e Fixes assert syntax 2021-09-27 16:06:01 -07:00
Mouse Reeve
3f10ae248a Changes visiblity function to raise 2021-09-27 15:54:58 -07:00
Mouse Reeve
ab5521480d
Merge pull request #1462 from bookwyrm-social/fewer-active-shelf-queries
Fewer active shelf queries
2021-09-27 13:16:50 -07:00
Mouse Reeve
6d2403bbc7
Merge pull request #1459 from bookwyrm-social/password-reset
Prevent password reset for inactive users
2021-09-27 12:55:05 -07:00
Mouse Reeve
8b0a8e2611 Another user mock on request 2021-09-27 12:38:49 -07:00
Mouse Reeve
dd3850a3ba Updates books test 2021-09-27 12:26:56 -07:00
Mouse Reeve
1cb1b29f57 Adds request user to mock 2021-09-27 10:26:25 -07:00
Mouse Reeve
d510d72b8d Fixes syntax in reading view 2021-09-22 16:41:43 -07:00
Mouse Reeve
b7c2fb600a String formatting for status view tests 2021-09-22 10:55:51 -07:00
Mouse Reeve
673f49bf21 Tests fixes 2021-09-20 18:01:12 -07:00
Mouse Reeve
90c74f00c9 Fixes missing f format in preview image string
plus a unit test for it
2021-09-20 17:40:59 -07:00
Mouse Reeve
a74141ece4 Adds site models tests 2021-09-20 17:19:20 -07:00
Mouse Reeve
967e26ce48 Updates connector manager tests 2021-09-17 11:29:10 -07:00
Mouse Reeve
1465385452 Python formatting 2021-09-16 15:29:06 -07:00
Mouse Reeve
d9284ede9b updates search tests 2021-09-16 15:27:06 -07:00
Mouse Reeve
8c4cafed79 Fixes formatting isbn endpoint results 2021-09-16 12:53:27 -07:00
Mouse Reeve
22af7ece71 Fixes SearchResult imports in tests 2021-09-16 12:41:30 -07:00
Mouse Reeve
4cdf895d77 Removes references to local field in connector tests 2021-09-16 12:29:02 -07:00
Mouse Reeve
76ab5a763c Remove outdated test 2021-09-16 10:56:28 -07:00
Mouse Reeve
9d5bfc494f Adds dashbaord view test 2021-09-11 13:35:23 -07:00
Mouse Reeve
09e49c70ed Fixes peers endpoint 2021-09-11 13:30:27 -07:00
Mouse Reeve
c2ccef20a6 Fixes references to federation views 2021-09-11 07:27:45 -07:00
Mouse Reeve
ad9be9f3d1 Updates test 2021-09-09 17:22:42 -07:00
Mouse Reeve
de3c79ce21 Merge branch 'main' into email-blocking 2021-09-08 17:43:08 -07:00
Mouse Reeve
bcb78653e9 Fixes remove email domain test 2021-09-08 17:39:22 -07:00
Mouse Reeve
f5de1c903e Adds deletion test 2021-09-08 17:33:43 -07:00
Mouse Reeve
31e6e59047 Updates test 2021-09-08 16:48:23 -07:00
Mouse Reeve
21527803de Fixes delete test 2021-09-08 16:35:36 -07:00
Mouse Reeve
b891f32707 Adds deletion test 2021-09-08 16:31:15 -07:00
Mouse Reeve
7638f99c1b Adds tests 2021-09-08 16:14:13 -07:00
Mouse Reeve
4db5677509 Fixes filters 2021-09-08 12:06:23 -07:00
Mouse Reeve
47ba2478b6 Split out test files 2021-09-07 15:06:44 -07:00
Mouse Reeve
75cc2ee164 Split authentication views into login and register 2021-09-07 13:11:44 -07:00
Mouse Reeve
da3bc1e591 Python formatting 2021-09-07 12:05:34 -07:00
Mouse Reeve
6bc4bf4503 Fixes mock 2021-09-07 12:02:29 -07:00
Mouse Reeve
b717c2fcd8 Fixes mock arg on test 2021-09-07 11:57:18 -07:00
Mouse Reeve
82ad1abe9a more activitystreams tests 2021-09-07 11:53:41 -07:00
Mouse Reeve
d147c6ac2f Separate tests into more files 2021-09-07 11:13:18 -07:00
Mouse Reeve
a4041911c6 Adds tests more activitystreams tasks 2021-09-07 11:01:27 -07:00
Mouse Reeve
f4b43af600 Creates test files for activitystreams 2021-09-07 10:24:09 -07:00
Mouse Reeve
93d9e7b1a1
Merge pull request #1254 from bookwyrm-social/activitystreams-celery
Move activitystreams updates to tasks
2021-09-06 21:33:01 -07:00
Mouse Reeve
0a9d515d45 two more mocks 2021-09-06 20:37:09 -07:00
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
Joachim
c6f8236b07 Fix tests 2021-08-04 19:11:57 +02:00
Joachim
bc7710a4a7 Update Status Model Test 2021-08-04 18:18:18 +02:00
Mouse Reeve
89acfa4f3e Patches stray redis calls 2021-08-04 08:50:50 -07:00
Joachim
60e805ac2b Fix tests 2021-08-04 17:39:46 +02: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
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