1
0
Fork 0
Commit graph

1253 commits

Author SHA1 Message Date
c092d952bd Adds test to catch notification error 2022-07-09 12:29:29 -07:00
948f2964ac Updates admin tests to use perms instead of superuser
Superuser overrides all perms, so this was hiding simple typo-related
bugs in the permissions system
2022-07-07 14:01:05 -07:00
1a082b5ee8 Settings 2022-07-07 11:37:34 -07:00
634ed50044 Tests for image generator file
This isn't what I need to be working on right now but it bugs me
immensely that the test coverage is at 89% and not 90% and this was the
lowest hanging fruit to get more coverage. Truly a me problem.
2022-07-07 10:24:19 -07:00
0b7c8e8dc0
Merge pull request #2082 from bookwyrm-social/notifications
Notifications refactor
2022-07-07 09:34:19 -07:00
6a5323c6e7 More tests for more notification types 2022-07-06 19:15:35 -07:00
04f9b9180d Adds test file for utils 2022-07-06 15:07:46 -07:00
d3023f350d Adds tests to site admin view 2022-07-06 15:04:27 -07:00
5a6ef7ccd8 Merge branch 'main' into notifications 2022-07-06 14:41:15 -07:00
dda6126329 Fixes typo in group notification 2022-07-06 14:33:45 -07:00
2cda9d5567 Test leaving a group (as opposed to being removed)
This test will catch my typo in generating the notifications
2022-07-06 14:31:38 -07:00
b2a8a04092 Removes unnecessary imports 2022-07-06 11:24:04 -07:00
9c21d1c06f Adds more automod tests 2022-07-06 11:15:30 -07:00
7a9d320afd Expands automod view test 2022-07-06 10:52:50 -07:00
574c1db732 Adds more templatetag tests 2022-07-06 10:52:45 -07:00
87434fbb9d Adds a couple more edit book views tests 2022-07-06 10:38:22 -07:00
f4dd14acad Adds more webfinger tests for helper functions 2022-07-06 10:05:47 -07:00
c48fbd8753 Separates reporting and report admins tests 2022-07-06 09:47:48 -07:00
b61a4ab994 Adds tests for unnotify 2022-07-06 08:51:35 -07:00
24349b0a4c Updates notification view tests 2022-07-05 16:20:27 -07:00
37bcb031f7 Adds notification model unit tests 2022-07-05 16:03:25 -07:00
9d9b7f366a Use "strip" in bleach
This removes forbidden html, rather than leaving them in place but
unrendered.
2022-07-04 13:55:58 -07:00
70beb24d95 Removed misleading test
This wasn't really testing what I wanted it to.
2022-07-04 13:34:09 -07:00
7f78140015 Uses library for html cleanup 2022-07-04 13:21:13 -07:00
4ccbfb6b31
Merge pull request #2057 from bookwyrm-social/list-privacy
Re-consider list privacy on edit
2022-07-02 20:07:00 -07:00
6e70ceb094 More mocks 2022-07-02 19:43:59 -07:00
46421f9672 Mocks for lists model 2022-07-02 13:48:15 -07:00
495bf203b0 Mocks inbox and search tests 2022-07-02 13:45:53 -07:00
3ad0a5d073 Use update_fields to limit remove_list_tasks
If we know what fields were updated, we can avoid running this task.
This also adds some mocks where they are needed for the list view.
2022-07-02 13:23:23 -07:00
94a6675dc4 Pylint fixes 2022-07-02 12:07:22 -07:00
08231f52ff
Merge pull request #2150 from cincodenada/fix-pylint
Fix pylint config for pylint 2.14.0
2022-06-05 15:41:32 -07:00
Joel Bradshaw
6d6ab9a531 Add .pylintrc with fixes for new pylint version 2022-06-05 14:38:03 -07:00
355e7039f0
Merge pull request #2139 from bookwyrm-social/search-refactor
Search refactor
2022-05-31 10:22:17 -07:00
c3b35760a2 Updates test mocks for remote search 2022-05-31 09:37:54 -07:00
05fd30cfcf Pylint fixes in connector tests 2022-05-31 08:37:07 -07:00
98ed03b6b4 Python formatting and test update 2022-05-30 17:00:34 -07:00
af19d728d2 Removes outdated unit tests 2022-05-30 16:16:10 -07:00
fb3c7205af Updates unit tests 2022-05-30 09:17:51 -07:00
77a7dfa924
Merge pull request #2133 from bookwyrm-social/activitypub-connection-erorr
Don't throw an error when unable to connect to remote data
2022-05-26 10:12:18 -07:00
88b2cffcf2
Merge pull request #2035 from bookwyrm-social/stopped-shelf
Stopped shelf
2022-05-26 10:11:32 -07:00
9d275db322 Updates ignore boost logic that no longer produces errors 2022-05-26 09:57:39 -07:00
69f192e78c Fixes error in add author code returning too soon 2022-05-23 13:57:14 -07:00
b2c587e082 Adds unit test for add author code when editing book 2022-05-23 13:51:58 -07:00
1843959d10
Merge pull request #2093 from Ryuno-Ki/calibre-import
Calibre import. Fixes #627
2022-05-23 12:37:50 -07:00
b2775c5160 Check unsupported types before attempting to serialize 2022-05-16 10:21:54 -07:00
fd43b56d31 Fixes celery error encountering Article type activities 2022-05-16 10:17:21 -07:00
fdd4691e00 Adds unit test 2022-05-16 09:41:34 -07:00
André Jaenisch
62c7661fb9
Reformat tests using black
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-05-05 21:31:56 +02:00
André Jaenisch
22fcb61fb2
Write tests for Calibre importer
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-05-05 13:08:01 +02:00
André Jaenisch
6bd9b725e2
Refactor hard-coded strings with a reference to a static property
Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2022-05-05 13:07:25 +02:00