From e0780f2ae5fd655fbe265cd7efb80a4e987c39c9 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Mon, 28 Oct 2024 22:18:35 +1100 Subject: [PATCH] Fix up test to match docs change (#152) --- 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):