mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-06-02 21:39:23 +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"""
|
"""load the rss feed of a shelf"""
|
||||||
with patch("bookwyrm.models.activitypub_mixin.broadcast_task.apply_async"):
|
with patch("bookwyrm.models.activitypub_mixin.broadcast_task.apply_async"):
|
||||||
# make the shelf
|
# make the shelf
|
||||||
self.shelf = models.Shelf.objects.create(
|
shelf = models.Shelf.objects.create(
|
||||||
name="Test Shelf", identifier="test-shelf", user=self.local_user
|
name="Test Shelf", identifier="test-shelf", user=self.local_user
|
||||||
)
|
)
|
||||||
# put the shelf on the book
|
# put the shelf on the book
|
||||||
models.ShelfBook.objects.create(
|
models.ShelfBook.objects.create(
|
||||||
book=self.book,
|
book=self.book,
|
||||||
shelf=self.shelf,
|
shelf=shelf,
|
||||||
user=self.local_user,
|
user=self.local_user,
|
||||||
)
|
)
|
||||||
models.SiteSettings.objects.create()
|
models.SiteSettings.objects.create()
|
||||||
|
|
Loading…
Reference in a new issue