From a00fdc68644baea5f77b8c5f0b00143af15c976d Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 8 Jun 2021 14:42:55 -0700 Subject: [PATCH] Updates tests for reading views --- bookwyrm/tests/views/test_reading.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bookwyrm/tests/views/test_reading.py b/bookwyrm/tests/views/test_reading.py index c591aa60..e14575e0 100644 --- a/bookwyrm/tests/views/test_reading.py +++ b/bookwyrm/tests/views/test_reading.py @@ -56,7 +56,7 @@ class ReadingViews(TestCase): ) request.user = self.local_user with patch("bookwyrm.models.activitypub_mixin.broadcast_task.delay"): - views.start_reading(request, self.book.id) + views.StartReading.as_view()(request, self.book.id) self.assertEqual(shelf.books.get(), self.book) @@ -86,7 +86,7 @@ class ReadingViews(TestCase): request = self.factory.post("") request.user = self.local_user with patch("bookwyrm.models.activitypub_mixin.broadcast_task.delay"): - views.start_reading(request, self.book.id) + views.StartReading.as_view()(request, self.book.id) self.assertFalse(to_read_shelf.books.exists()) self.assertEqual(shelf.books.get(), self.book) @@ -112,7 +112,7 @@ class ReadingViews(TestCase): request.user = self.local_user with patch("bookwyrm.models.activitypub_mixin.broadcast_task.delay"): - views.finish_reading(request, self.book.id) + views.FinishReading.as_view()(request, self.book.id) self.assertEqual(shelf.books.get(), self.book)