mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-05-20 09:18:19 +00:00
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:
parent
4ae0dbde92
commit
c142e383c9
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue