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.
This commit is contained in:
mattkatz 2023-10-01 06:04:52 -04:00
parent 4ae0dbde92
commit c142e383c9

View file

@ -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()