From 45926eed347c91788486331fbbc54e31779d0865 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 8 Apr 2021 13:33:24 -0700 Subject: [PATCH] Adds necessary user to inbox tests --- bookwyrm/tests/views/inbox/test_inbox.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bookwyrm/tests/views/inbox/test_inbox.py b/bookwyrm/tests/views/inbox/test_inbox.py index 992394a9e..12d7a736c 100644 --- a/bookwyrm/tests/views/inbox/test_inbox.py +++ b/bookwyrm/tests/views/inbox/test_inbox.py @@ -15,6 +15,15 @@ class Inbox(TestCase): def setUp(self): """ basic user and book data """ self.client = Client() + local_user = models.User.objects.create_user( + "mouse@example.com", + "mouse@mouse.com", + "mouseword", + local=True, + localname="mouse", + ) + local_user.remote_id = "https://example.com/user/mouse" + local_user.save(broadcast=False) self.create_json = { "id": "hi", "type": "Create",