mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2025-06-05 21:59:23 +02:00
Add new notification type for Move activities
This commit is contained in:
@ -414,3 +414,12 @@ def test_inbox__move_activity(
|
||||
)
|
||||
== 1
|
||||
)
|
||||
|
||||
# And a notification was created
|
||||
notif = db.execute(
|
||||
select(models.Notification).where(
|
||||
models.Notification.notification_type == models.NotificationType.MOVE
|
||||
)
|
||||
).scalar_one()
|
||||
assert notif.actor.ap_id == new_ra.ap_id
|
||||
assert notif.inbox_object_id == inbox_activity.id
|
||||
|
Reference in New Issue
Block a user