From e2935b6364ff8359d1fc25f7fd2df1602f30109f Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 27 Jan 2021 09:27:29 -0800 Subject: [PATCH] Fixes shelve tests --- bookwyrm/tests/views/test_shelf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bookwyrm/tests/views/test_shelf.py b/bookwyrm/tests/views/test_shelf.py index 64966a778..35e07953e 100644 --- a/bookwyrm/tests/views/test_shelf.py +++ b/bookwyrm/tests/views/test_shelf.py @@ -74,7 +74,7 @@ class ShelfViews(TestCase): 'name': 'To Read', }) request.user = self.local_user - view(request, self.local_user.username, shelf.id) + view(request, self.local_user.username, shelf.identifier) shelf.refresh_from_db() self.assertEqual(shelf.privacy, 'unlisted') @@ -94,7 +94,7 @@ class ShelfViews(TestCase): 'name': 'cool name' }) request.user = self.local_user - view(request, request.user.username, shelf.id) + view(request, request.user.username, shelf.identifier) shelf.refresh_from_db() self.assertEqual(shelf.name, 'cool name') @@ -114,7 +114,7 @@ class ShelfViews(TestCase): 'name': 'cool name' }) request.user = self.local_user - view(request, request.user.username, shelf.id) + view(request, request.user.username, shelf.identifier) self.assertEqual(shelf.name, 'To Read')