1
0
Fork 0
Commit graph

300 commits

Author SHA1 Message Date
799f842115
Merge pull request #3146 from dato/setup_test_data
Faster tests with setUpTestData
2023-12-11 15:45:40 -08:00
9d502f5ee2
Use setUpTestData() to speed up tests
Pylint's `bad-classmethod-argument` is disabled for each definition
to avoid rewriting the method bodies just to rename `self` → `cls`.
This can be done gradually, as the setUpTestData methods are modified
along the way.
2023-12-11 19:40:30 -03:00
5384e4c470
Use bulk_create to test ordered collections 2023-11-30 15:58:48 -03:00
8dbfba17d6
Merge from 'main' into stable_dates 2023-11-19 15:09:52 -03:00
01d4381898
Create notifications for incoming invite requests
Closes: #2066
2023-11-14 07:09:04 -03:00
99a9dbe5f4
Create NotificationType as class, not through API
This way, we need not list every value again to create the enum.

N.B.: enum values are now accessed as `models.NotificationType.FOO`,
instead of `models.Notification.FOO`.
2023-11-09 22:43:36 -03:00
e928027e16
Merge from main for up-to-date migrations 2023-11-09 14:00:14 -03:00
dccac11527
PartialDateField: allow incoming dates without timezone 2023-11-09 13:04:09 -03:00
ee88c3b914
Merge pull request #3081 from bookwyrm-social/handle-isbn-error
Fix error produced when an unexpected ISBN format is used
2023-11-06 11:06:46 -08:00
e7a1572450
Merge pull request #3086 from bookwyrm-social/user-deletion
Erase user data and statuses on account deletion
2023-11-06 09:49:06 -08:00
ee6e3ed7eb Adds a database field for is_deleted on user 2023-11-05 20:28:23 -08:00
47953c84d7 Fixes linting errors
Apparently I didn't have a linter working!
2023-11-05 09:49:38 -08:00
61caeed5a3 Adds migration and more tests 2023-11-05 08:51:42 -08:00
93a7dd9cf3 Erase user data and statuses on account deletion 2023-11-05 08:00:29 -08:00
10e0f2224a Adds a couple more tests for find_existing 2023-11-05 06:44:39 -08:00
f839038c8f Add test for normalizing isbns in book model
Turns out this was actually working as expected
2023-11-02 19:12:46 -07:00
621cfa7ed2
Merge pull request #2970 from hughrun/move
Add `Move` activity for user migration
2023-11-01 17:14:34 -07:00
170d1fe205
fix pylint issues (minus no-else-return) 2023-10-24 17:41:07 -03:00
737ac8e908
Implement PartialDateField using SealedDate and a custom descriptor 2023-10-24 17:30:15 -03:00
088b9ab555
Merge branch 'main' into move 2023-09-26 08:10:18 +10:00
7cfdf235bc
Include author in cover image alt text 2023-09-25 16:03:16 -03:00
80a1180090
Include author name when serializing Quotation 2023-09-25 16:03:16 -03:00
d67903fd4b
fix tests and templates 2023-09-25 15:49:25 +10:00
cc05cabcb5
Note content: use italics for book titles + em-dash for Quotation 2023-09-23 17:49:38 -03:00
ce3885d4f6
Use endposition when serializing Quotation 2023-09-17 15:18:48 -03:00
1322a0c693
Substitute “p.” for “page” in page progress serialization 2023-09-17 15:18:21 -03:00
9d69f2fb3e
Merge pull request #2905 from bookwyrm-social/broken-editions
Adds management command to repair editions in bad state
2023-08-01 21:08:43 -07:00
8736f2c6ef Remove '@' from the beginning of hashtag names in activity 2023-07-28 11:20:08 +02:00
eae06602a9 Fixes test data 2023-07-21 14:38:28 -07:00
ccf3a4c5c1 Skip trying to match editions
It's rare that it will be useful, and it was a huge hassle.
2023-07-18 19:33:39 -07:00
8b88de624d Adds test and fixes logic errors 2023-07-17 20:00:45 -07:00
a601be4708
Merge branch 'main' into 2678 2023-06-01 16:53:28 +02:00
9056a5d9e7
Merge pull request #2842 from bookwyrm-social/set-remote-server
Set remote servers synchonously where possible
2023-05-30 10:51:39 -07:00
379db26300 Fixes user model tests for new param 2023-05-07 10:01:33 -07:00
Zach Flanders
f43d7f8c70 fixing test and other checks 2023-04-25 21:00:16 -05:00
Zach Flanders
575e1bac4c responding to review comments 2023-04-25 19:46:38 -05:00
Zach Flanders
6b39052fcc Adding test for sort_title population 2023-04-25 07:17:23 -05:00
a0b7112c9c
Merge branch 'main' into gts 2023-04-14 18:24:02 +10:00
123628c66a fix tests and formatting 2023-04-13 22:33:54 +10:00
Josh Soref
359228127d spelling: wyrm
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
2a914f98b7 spelling: versions
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
7170e8972d spelling: uneventfully
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
e7d8692836 spelling: receiving
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
9c5d588630 spelling: fields
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Josh Soref
445cb60f2c spelling: example
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-04 20:02:54 -04:00
Christof Dorner
824d4207dc Try and fix a flaky test
Same case as with #2496, for some reason the URL to the cover just ends with `test.jpg`
2023-03-07 12:59:32 +01:00
Christof Dorner
7ae983acdf Use default user auth group from site settings 2023-01-21 17:04:32 +01:00
Arie van Deursen
2bf8cd88f1
Fix @pytest.mark.skipif formatting 2022-12-30 18:44:28 +01:00
Arie van Deursen
1c0a3a7829
Only test thumbnails if they're enabled in the settings 2022-12-26 14:26:23 +01:00
bb5564461c
Merge pull request #2398 from bookwyrm-social/html-in-activitypub
Render markdown to html when using activitypub
2022-12-11 13:43:36 -08:00