Mouse Reeve
46b663b139
Rename new user to avoid duplication
2022-11-17 15:10:11 -08:00
Mouse Reeve
34f05c135b
Adds unit tests for list of admins method
2022-11-17 14:59:46 -08:00
Mouse Reeve
f95729a0c3
Adds unit test for failing view
2022-11-15 21:45:06 -08:00
Mouse Reeve
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
Mouse Reeve
ddcaf8e3b8
Use asyncio for broadcasting
2022-11-10 15:41:56 -08:00
Mouse Reeve
49d0590599
Another tweak to how import wait times are calculated
2022-11-10 13:59:27 -08:00
Mouse Reeve
eae1866992
Allow users to temporarily deactivate their accounts ( #2324 )
2022-11-10 13:40:54 -08:00
Mouse Reeve
bbdba9e793
Python formatting
2022-11-10 13:13:53 -08:00
Mouse Reeve
8f2de48b0a
Comments out unrelated test block
2022-11-10 13:05:42 -08:00
Mouse Reeve
f80e2465ed
Adds tests for recent import average time
2022-11-10 12:29:36 -08:00
Mouse Reeve
b64f0511a5
Another mock
2022-11-07 10:07:37 -08:00
Mouse Reeve
141d3aa813
Updates mocks in tests
2022-11-07 09:50:05 -08:00
Mouse Reeve
6e748c5476
Typo fix
2022-11-05 18:16:59 -07:00
Mouse Reeve
14e61fa32d
Adds extremely basic tests file
2022-11-03 10:55:21 -07:00
Mouse Reeve
0ba4dbbc6f
Fixes pagination and user links on import admin
2022-11-03 10:54:59 -07:00
Mouse Reeve
881d5682e3
Updates test mock
2022-11-01 18:20:56 -07:00
Hugh Rundle
905aa66f38
add test_post_login_with_2fa
2022-10-15 07:47:20 +11:00
Hugh Rundle
f55adbadf4
fix 2fa tests
2022-10-15 07:47:20 +11:00
Hugh Rundle
119b4bf2ff
clean up tests
...
- remove unnecessary crap
- add missing tests
2022-10-15 07:47:20 +11:00
Hugh Rundle
9d36722783
code formatting
2022-10-15 07:47:20 +11:00
Hugh Rundle
b63d4bec60
add tests for 2fa
2022-10-15 07:47:20 +11:00
Mouse Reeve
74b89b2d4a
That test didn't work
2022-10-04 12:09:05 -07:00
Mouse Reeve
5b5e15d48b
Just adds a couple tests
2022-10-04 11:40:01 -07:00
Mouse Reeve
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
Mouse Reeve
fdc477afdf
Merge pull request #2258 from bookwyrm-social/form-perms
...
Check permissions automatically on form save
2022-09-19 13:32:41 -07:00
Mouse Reeve
35aebacf70
Fixes theme form and adds view tests
2022-09-19 13:13:21 -07:00
Mouse Reeve
bf092ec44e
Small fixes
2022-09-19 12:10:27 -07:00
Mouse Reeve
4c099afc63
Python formatting
2022-09-19 11:23:40 -07:00
Mouse Reeve
37dacaff6f
Fixes creating notifications for auto-moderation reports
2022-09-19 11:11:08 -07:00
Mouse Reeve
9d8d85ebc1
Invite perms checks
2022-09-19 10:26:40 -07:00
Mouse Reeve
330be16516
Adds permissions checking for admin models
2022-09-19 10:12:47 -07:00
Mouse Reeve
b0236b95bd
Merge branch 'main' into form-perms
2022-09-19 09:32:48 -07:00
Mouse Reeve
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
Mouse Reeve
81d5195d20
Adds test
2022-09-15 11:12:05 -07:00
Mouse Reeve
834c7e9cd5
Merge pull request #2282 from hughrun/normalise-isbn
...
Normalise ISBNs for searching
2022-09-08 10:14:30 -07:00
Hugh Rundle
68d91086ed
add wonky ISBN test
2022-08-30 19:57:25 +10:00
Mouse Reeve
1f93dc9c62
Merge pull request #2260 from bookwyrm-social/mentions
...
Refactors how mentions are collected
2022-08-29 15:17:40 -07:00
Mouse Reeve
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
Mouse Reeve
9d7ece47ef
Merge pull request #2254 from bookwyrm-social/fixes-search-pagination
...
Fixes search pagination
2022-08-05 12:32:47 -07:00
Mouse Reeve
9fad5b5623
Fixes isbn view
2022-08-05 11:44:10 -07:00
Mouse Reeve
20572688ba
Removes test exception
2022-08-05 11:04:32 -07:00
Mouse Reeve
1ba69acc49
Adds unit tests that checks if rel field is set on links
2022-08-05 11:01:02 -07:00
Mouse Reeve
2894aa37a2
Fixes perms checks for groups
2022-08-05 09:12:48 -07:00
Mouse Reeve
b4cfda0587
Updates tests
2022-08-05 08:56:24 -07:00
Mouse Reeve
6d258d5445
Fixes test mocks
2022-07-30 10:07:13 -07:00
Mouse Reeve
23188dfc5f
Merge branch 'main' into followers-following-views
2022-07-29 13:09:30 -07:00
Mouse Reeve
d458001491
Merges follower/following views
...
They were almost identical!
2022-07-29 13:07:15 -07:00
Mouse Reeve
85dce81b6a
Adds unit test or list create perms
2022-07-28 11:42:27 -07:00
Mouse Reeve
3f5bb41380
Unit test for creating rating status
2022-07-17 16:18:59 -07:00
Mouse Reeve
086ec10849
Merge pull request #2229 from bookwyrm-social/password-validation
...
Password validation
2022-07-15 11:53:27 -07:00