Skip to content

Commit

Permalink
Fix up test to match docs change (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee authored Oct 28, 2024
1 parent 4aaa260 commit e0780f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions catalog/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down

0 comments on commit e0780f2

Please sign in to comment.