From 32bf5107556562c537acbf1920a89c476db28f5d Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 8 Apr 2021 15:46:06 -0700 Subject: [PATCH] Updates inbox remove tests --- bookwyrm/tests/views/inbox/test_inbox_remove.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bookwyrm/tests/views/inbox/test_inbox_remove.py b/bookwyrm/tests/views/inbox/test_inbox_remove.py index 778f5077f..e19ea11be 100644 --- a/bookwyrm/tests/views/inbox/test_inbox_remove.py +++ b/bookwyrm/tests/views/inbox/test_inbox_remove.py @@ -58,10 +58,10 @@ class InboxRemove(TestCase): "type": "Remove", "actor": "https://example.com/users/rat", "object": { - "type": "Edition", - "title": "Test Title", - "work": self.work.remote_id, - "id": "https//bookwyrm.social/book/37292", + "actor": self.local_user.remote_id, + "type": "ShelfItem", + "book": self.book.remote_id, + "id": shelfbook.remote_id, }, "target": "https://bookwyrm.social/user/mouse/shelf/to-read", "@context": "https://www.w3.org/ns/activitystreams", @@ -88,10 +88,10 @@ class InboxRemove(TestCase): "type": "Remove", "actor": "https://example.com/users/rat", "object": { - "type": "Edition", - "title": "Test Title", - "work": self.work.remote_id, - "id": "https://bookwyrm.social/book/37292", + "actor": self.local_user.remote_id, + "type": "ListItem", + "book": self.book.remote_id, + "id": listitem.remote_id, }, "target": booklist.remote_id, "@context": "https://www.w3.org/ns/activitystreams",