From c142e383c9db11c938b10293a5538c2c14dd1e08 Mon Sep 17 00:00:00 2001 From: mattkatz Date: Sun, 1 Oct 2023 06:04:52 -0400 Subject: [PATCH] fix linting issue didn't really need to add the shelf to self and the linter doesn't like seeing it outside of an init or setup. --- bookwyrm/tests/views/test_rss_feed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/tests/views/test_rss_feed.py b/bookwyrm/tests/views/test_rss_feed.py index 2b643cbdd..a4e473637 100644 --- a/bookwyrm/tests/views/test_rss_feed.py +++ b/bookwyrm/tests/views/test_rss_feed.py @@ -132,13 +132,13 @@ class RssFeedView(TestCase): """load the rss feed of a shelf""" with patch("bookwyrm.models.activitypub_mixin.broadcast_task.apply_async"): # make the shelf - self.shelf = models.Shelf.objects.create( + shelf = models.Shelf.objects.create( name="Test Shelf", identifier="test-shelf", user=self.local_user ) # put the shelf on the book models.ShelfBook.objects.create( book=self.book, - shelf=self.shelf, + shelf=shelf, user=self.local_user, ) models.SiteSettings.objects.create()