Mouse Reeve
8de3668065
Expands tests and fixes logic error in report recipients
2024-01-02 19:48:43 -08:00
Mouse Reeve
052823e0c9
Allow the user to decide if they want to send along a report
2024-01-02 18:49:04 -08:00
Mouse Reeve
5c0ade5346
Changes field names in report model so the reporter is "user"
...
This is such an annoying change but it is objectively better. Just gotta
be real sure they didn't get mixed up anywhere along the way.
2024-01-02 14:43:28 -08:00
Mouse Reeve
fb16806afe
Merge pull request #3177 from dato/naturalday_partial_fixes
...
Adjustments to naturalday_partial
2024-01-01 19:16:16 -08:00
Mouse Reeve
ca79cb1ca7
Merge pull request #3054 from bookwyrm-social/user-migration
...
User migration via export file
2024-01-01 19:04:43 -08:00
Adeodato Simó
0d908b594c
naturalday_partial: do not naturalize dates with missing parts
2024-01-01 18:36:31 +01:00
Adeodato Simó
0e3936cb61
naturalday_partial: do naturalize date and datetime objects
2024-01-01 18:36:30 +01:00
Hugh Rundle
7fcadb1d4d
fix upsert_statuses
...
- remote_id is now updated on import of statuses
- statuses cannot be imported unless source has target listed in alsoKnownAs or movedTo
- add alert boxes to import and export screens advising of the above
- update tests accordingly
2023-12-13 20:55:38 +11:00
Mouse Reeve
4bfa1ca5b8
Merge pull request #3124 from hughrun/softblock
...
Allow removing followers and fix follow rejections
2023-12-11 19:49:45 -08:00
Mouse Reeve
799f842115
Merge pull request #3146 from dato/setup_test_data
...
Faster tests with setUpTestData
2023-12-11 15:45:40 -08:00
Adeodato Simó
aa67f598dd
Explicitly set doctype to html5 when invoking tidy_document()
...
Many tests break without this on newer versions of html-tidy.
2023-12-11 19:40:48 -03:00
Adeodato Simó
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
Adeodato Simó
5384e4c470
Use bulk_create to test ordered collections
2023-11-30 15:58:48 -03:00
Adeodato Simó
c997d2d44a
Add test to assert distinct() clause
...
Also, tweak other `search_title_author()` tests to verify ordering by
edition rank.
2023-11-24 02:28:27 -03:00
Hugh Rundle
0276c15948
Merge branch 'main' into user-migration
2023-11-22 21:00:04 +11:00
Hugh Rundle
c6dea2523c
Merge branch 'main' into softblock
2023-11-22 20:06:02 +11:00
Hugh Rundle
6ba7418121
improve tests and minor cleanup
2023-11-22 20:04:17 +11:00
Hugh Rundle
2c9ebba5d7
fix reject PR
...
- rationalise activitypub.Reject and fix model being undefined
- fix not being able to follow users from followers page: 'delete' option now in user_options dropdown
- revert bookwyrm.js
- fix delete_follow_request deleting instead of rejecting
- add user id to 'remove-follow' path
2023-11-21 20:13:56 +11:00
Mouse Reeve
b6325da9ab
Update bookwyrm/tests/views/admin/test_themes.py
...
Co-authored-by: Adeodato Simó <73768+dato@users.noreply.github.com>
2023-11-20 10:37:12 -08:00
Mouse Reeve
179dbd75aa
Adds tests
2023-11-20 10:23:59 -08:00
Mouse Reeve
d94b27b723
Merge branch 'main' into user-migration
2023-11-19 19:18:22 -08:00
Adeodato Simó
6aaff28c13
Accept argument in naturalday_partial, downcast format if necessary
2023-11-19 15:10:14 -03:00
Adeodato Simó
aaea1b1b9e
Add tests for naturalday_partial tag
2023-11-19 15:10:13 -03:00
Adeodato Simó
8dbfba17d6
Merge from 'main' into stable_dates
2023-11-19 15:09:52 -03:00
Mouse Reeve
1a7a843dea
Re-creates migrations and removes failing test
...
I think the test was failing because it was extremely brittle, not
because of anything wrong with the code itself.
2023-11-15 17:08:15 -08:00
Adeodato Simó
01d4381898
Create notifications for incoming invite requests
...
Closes : #2066
2023-11-14 07:09:04 -03:00
Hugh Rundle
d5762f1d52
Merge branch 'main' into user-migration
2023-11-13 21:17:07 +11:00
Hugh Rundle
891b72c79c
update user export file to use ActivityPub objects where possible. ( #3109 )
...
* add more context to user export page
* fix BookData fields wrong for files
* use to_activity and to_model where possible
* fixes for import and export
- use AP JSON where possible
- minor template wording updates
* import fixes and updates tests
* minor cleanup
* remove todo for mastodon
2023-11-13 21:14:03 +11:00
Adeodato Simó
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
Adeodato Simó
edfa6b18a1
Rename utils.sealed_date module (and tests) to utils.partial_date
2023-11-09 14:00:44 -03:00
Adeodato Simó
fa80aa54a9
SealedDate renames, pt. 2
...
• SealedDate -> PartialDate
• MonthSeal -> MonthParts
• YearSeal -> YearParts
2023-11-09 14:00:44 -03:00
Adeodato Simó
0e4c5ed439
SealedDate renames, pt. 1
...
• SealedDateField -> PartialDateModel
• SealedDateFormField -> PartialDateFormField
• SealedDateDescriptor -> PartialDateDescriptor
2023-11-09 14:00:44 -03:00
Adeodato Simó
e928027e16
Merge from main for up-to-date migrations
2023-11-09 14:00:14 -03:00
Adeodato Simó
dccac11527
PartialDateField: allow incoming dates without timezone
2023-11-09 13:04:09 -03:00
Mouse Reeve
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
Mouse Reeve
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
Mouse Reeve
ee6e3ed7eb
Adds a database field for is_deleted on user
2023-11-05 20:28:23 -08:00
Hugh Rundle
2d185dfb8a
remove unnecessary test data files
2023-11-06 14:51:52 +11:00
Mouse Reeve
27d99a0094
Removes failsafe that was overzealous
2023-11-05 19:47:32 -08:00
Hugh Rundle
a93519ec3e
Merge pull request #3027 from dato/find_links_wrapped_punct
...
Fix parsing of punctuation in format_links()
fixes #2993
fixes #3049
2023-11-06 09:42:57 +11:00
Mouse Reeve
47953c84d7
Fixes linting errors
...
Apparently I didn't have a linter working!
2023-11-05 09:49:38 -08:00
Mouse Reeve
4de9907456
Adds migration tests
2023-11-05 09:26:49 -08:00
Mouse Reeve
61caeed5a3
Adds migration and more tests
2023-11-05 08:51:42 -08:00
Mouse Reeve
93a7dd9cf3
Erase user data and statuses on account deletion
2023-11-05 08:00:29 -08:00
Mouse Reeve
67822d3cb0
Merge branch 'main' into user-migration
2023-11-05 06:52:48 -08:00
Mouse Reeve
10e0f2224a
Adds a couple more tests for find_existing
2023-11-05 06:44:39 -08:00
Adeodato Simó
954a02126e
format_links: parse punctuation inside brackets
...
Also, consolidate all punctuation tests into a single table-driven one.
2023-11-03 19:38:24 -03:00
Adeodato Simó
7d13cbb10b
Add failing tests for reported bugs in format_links()
2023-11-03 19:38:23 -03:00
Adeodato Simó
294788aa1a
format_links: refactor; support multiple punctuation
2023-11-03 19:38:23 -03:00
Mouse Reeve
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