From 5f33e077cc15b6405a0b6d72102ad3844a45ad2d Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Fri, 25 Oct 2024 11:06:42 +1100 Subject: [PATCH] Fix up test to match docs change --- catalog/tests/test_views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/catalog/tests/test_views.py b/catalog/tests/test_views.py index d93ff2d6..30270dbb 100644 --- a/catalog/tests/test_views.py +++ b/catalog/tests/test_views.py @@ -147,9 +147,9 @@ def test_only_borrowed_books_in_list(self): self.assertTrue('bookinstance_list' in response.context) # Confirm all books belong to testuser1 and are on loan - for bookitem in response.context['bookinstance_list']: - self.assertEqual(response.context['user'], bookitem.borrower) - self.assertEqual(bookitem.status, 'o') + for book_item in response.context['bookinstance_list']: + self.assertEqual(response.context['user'], book_item.borrower) + self.assertEqual(book_item.status, 'o') def test_pages_paginated_to_ten(self):