1
0
Fork 0
Commit graph

799 commits

Author SHA1 Message Date
9fdcc7debd Fixes mocks in tests 2023-01-25 09:32:45 -08:00
Giebisch
70f4d72322 Added Tests for several RSS Feeds 2023-01-20 23:28:50 +01:00
Christof Dorner
1c6548a0ad Ensure transient cover_url field value gets persisted across form renders
Given this field doesn't map to an `Edition` model field it lost its values when re-rendering the form.
It worked only when the form was valid and rendered as part of the confirmation screen, which is due to
the context data value being set in `add_authors` which was only getting called after the form validation.

I've opted to pull it out into a separate new function that gets called before form validation.
2023-01-04 18:02:04 +01:00
7ff654720c updates tests 2022-12-16 14:45:32 -08:00
89478ac87e
Merge pull request #2491 from chdorner/register-tz-support
Detect preferred timezone via JavaScript on register
2022-12-11 14:49:29 -08:00
Christof Dorner
13b262bb7b Detect preferred timezone via JavaScript on register 2022-12-11 23:32:07 +01:00
734fb5ad34
Merge pull request #2489 from chdorner/user-reviews-comments-tab
Add new user tab listing only reviews and comments
2022-12-11 11:53:31 -08:00
c314c9b5e3
Adds email config admin view (#2494)
This view lets you see your email configuration and send a test email.
2022-12-11 11:37:09 -08:00
ac8b060d58
Isfdb ID for books and authors (#2482)
* New ID: Audible ASIN

Audible belongs to Amazon BUT they do not share the same IDs. The Audible ASIN of an audiobook is never the same as the Amazon ASIN.

Yeah, I know, Amazon is great. The fact that the ASIN is a good distinction for different works and editions bothers me more than I will ever be willing to admint.

* New ID "ISFDB"

Internet Speculative Ficiton Database ID for books and authors.
Links to the entry if set.

* Added aasin to test

Added aasin to test

* the answer expects more emptxy fields...
2022-12-11 11:33:33 -08:00
Christof Dorner
fbd8e22b97 Add new user tab listing only reviews and comments 2022-12-11 20:24:00 +01:00
26a05d2182 Adds tests for impressum page 2022-12-04 13:13:05 -08:00
5172f67c35
Merge pull request #2450 from bookwyrm-social/impressum
Adds database fields for legal page/impressum
2022-12-04 12:12:26 -08:00
b7b7b2680e Fixes unit test 2022-12-04 11:44:42 -08:00
81ab08aaa3 Fixes editing links 2022-11-25 08:28:45 -08:00
f95729a0c3 Adds unit test for failing view 2022-11-15 21:45:06 -08:00
317cf5fcf5 Generate fewer add_status_tasks
Previously, every time a status was saved, a task would start to add it
to people's timelines. This meant there were a ton of duplicate tasks
that were potentially heavy to run. Now, the Status model has a "ready"
field which indicates that it's worth updating the timelines. It
defaults to True, which prevents statuses from accidentally not being
added due to ready state.

The ready state is explicitly set to false in the view, which is the
source of most of the noise for that task.
2022-11-15 14:14:32 -08:00
49d0590599 Another tweak to how import wait times are calculated 2022-11-10 13:59:27 -08:00
eae1866992
Allow users to temporarily deactivate their accounts (#2324) 2022-11-10 13:40:54 -08:00
f80e2465ed Adds tests for recent import average time 2022-11-10 12:29:36 -08:00
b64f0511a5 Another mock 2022-11-07 10:07:37 -08:00
141d3aa813 Updates mocks in tests 2022-11-07 09:50:05 -08:00
6e748c5476 Typo fix 2022-11-05 18:16:59 -07:00
14e61fa32d Adds extremely basic tests file 2022-11-03 10:55:21 -07:00
0ba4dbbc6f Fixes pagination and user links on import admin 2022-11-03 10:54:59 -07:00
881d5682e3 Updates test mock 2022-11-01 18:20:56 -07:00
905aa66f38 add test_post_login_with_2fa 2022-10-15 07:47:20 +11:00
f55adbadf4 fix 2fa tests 2022-10-15 07:47:20 +11:00
119b4bf2ff clean up tests
- remove unnecessary crap
- add missing tests
2022-10-15 07:47:20 +11:00
9d36722783 code formatting 2022-10-15 07:47:20 +11:00
b63d4bec60 add tests for 2fa 2022-10-15 07:47:20 +11:00
3a73ced5fa Adds a couple tests to annual review views
Also I tweaked the save functions so they don't broadcast
2022-09-19 14:38:30 -07:00
35aebacf70 Fixes theme form and adds view tests 2022-09-19 13:13:21 -07:00
bf092ec44e Small fixes 2022-09-19 12:10:27 -07:00
9d8d85ebc1 Invite perms checks 2022-09-19 10:26:40 -07:00
330be16516 Adds permissions checking for admin models 2022-09-19 10:12:47 -07:00
b0236b95bd Merge branch 'main' into form-perms 2022-09-19 09:32:48 -07:00
aa67f23b03 Override raise_not_editable for report model
This model uses "reporter" as the field that represents the onwer of the
object, and "user" and the subject. In retrospect, maybe not the ideal
way to do it.
2022-09-19 09:20:44 -07:00
81d5195d20 Adds test 2022-09-15 11:12:05 -07:00
1f93dc9c62
Merge pull request #2260 from bookwyrm-social/mentions
Refactors how mentions are collected
2022-08-29 15:17:40 -07:00
5c3bb2da13 Refactors how mentions are collected
This should be quicker, because it queries the users in one go instead
of jumping straight to iterating over them, and it checks if a user
blocks the poster before allowing them to be tagged.
2022-08-05 14:06:39 -07:00
9d7ece47ef
Merge pull request #2254 from bookwyrm-social/fixes-search-pagination
Fixes search pagination
2022-08-05 12:32:47 -07:00
9fad5b5623 Fixes isbn view 2022-08-05 11:44:10 -07:00
1ba69acc49 Adds unit tests that checks if rel field is set on links 2022-08-05 11:01:02 -07:00
2894aa37a2 Fixes perms checks for groups 2022-08-05 09:12:48 -07:00
b4cfda0587 Updates tests 2022-08-05 08:56:24 -07:00
6d258d5445 Fixes test mocks 2022-07-30 10:07:13 -07:00
23188dfc5f
Merge branch 'main' into followers-following-views 2022-07-29 13:09:30 -07:00
d458001491 Merges follower/following views
They were almost identical!
2022-07-29 13:07:15 -07:00
85dce81b6a Adds unit test or list create perms 2022-07-28 11:42:27 -07:00
3f5bb41380 Unit test for creating rating status 2022-07-17 16:18:59 -07:00