Updates inbox remove tests

This commit is contained in:
Mouse Reeve 2021-04-08 15:46:06 -07:00
parent 6310532ddf
commit 32bf510755

View file

@ -58,10 +58,10 @@ class InboxRemove(TestCase):
"type": "Remove", "type": "Remove",
"actor": "https://example.com/users/rat", "actor": "https://example.com/users/rat",
"object": { "object": {
"type": "Edition", "actor": self.local_user.remote_id,
"title": "Test Title", "type": "ShelfItem",
"work": self.work.remote_id, "book": self.book.remote_id,
"id": "https//bookwyrm.social/book/37292", "id": shelfbook.remote_id,
}, },
"target": "https://bookwyrm.social/user/mouse/shelf/to-read", "target": "https://bookwyrm.social/user/mouse/shelf/to-read",
"@context": "https://www.w3.org/ns/activitystreams", "@context": "https://www.w3.org/ns/activitystreams",
@ -88,10 +88,10 @@ class InboxRemove(TestCase):
"type": "Remove", "type": "Remove",
"actor": "https://example.com/users/rat", "actor": "https://example.com/users/rat",
"object": { "object": {
"type": "Edition", "actor": self.local_user.remote_id,
"title": "Test Title", "type": "ListItem",
"work": self.work.remote_id, "book": self.book.remote_id,
"id": "https://bookwyrm.social/book/37292", "id": listitem.remote_id,
}, },
"target": booklist.remote_id, "target": booklist.remote_id,
"@context": "https://www.w3.org/ns/activitystreams", "@context": "https://www.w3.org/ns/activitystreams",