Python formatting

This commit is contained in:
Mouse Reeve 2021-03-27 10:00:32 -07:00
parent 1341341a4f
commit c398d8a870

View file

@ -269,10 +269,11 @@ class ViewsHelpers(TestCase):
models.ShelfBook.objects.create( models.ShelfBook.objects.create(
user=self.local_user, user=self.local_user,
book=self.book, book=self.book,
shelf=self.local_user.shelf_set.first() shelf=self.local_user.shelf_set.first(),
) )
models.ShelfBook.objects.create( models.ShelfBook.objects.create(
user=user_1, book=self.book, shelf=user_1.shelf_set.first()) user=user_1, book=self.book, shelf=user_1.shelf_set.first()
)
result = views.helpers.get_suggested_users(self.local_user) result = views.helpers.get_suggested_users(self.local_user)
self.assertEqual(result.count(), 3) self.assertEqual(result.count(), 3)