From d024d44b79d63b1c3e990e4243f5df348d7624e4 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 17 Dec 2020 13:46:32 -0800 Subject: [PATCH] Fixes incoming tests --- bookwyrm/tests/test_incoming.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bookwyrm/tests/test_incoming.py b/bookwyrm/tests/test_incoming.py index a317ef714..22f1521be 100644 --- a/bookwyrm/tests/test_incoming.py +++ b/bookwyrm/tests/test_incoming.py @@ -473,11 +473,14 @@ class Incoming(TestCase): 'data/fr_edition.json') bookdata = json.loads(datafile.read_bytes()) + models.Work.objects.create( + title='Test Work', remote_id='https://bookwyrm.social/book/5988') book = models.Edition.objects.create( title='Test Book', remote_id='https://bookwyrm.social/book/5989') del bookdata['authors'] self.assertEqual(book.title, 'Test Book') + with patch( 'bookwyrm.activitypub.base_activity.set_related_field.delay'): incoming.handle_update_edition({'object': bookdata})