Fix tests
This commit is contained in:
parent
c88b34814f
commit
d63e5ab2d2
3 changed files with 16 additions and 19 deletions
|
@ -53,7 +53,7 @@ class User(TestCase):
|
|||
|
||||
def test_user_shelves(self):
|
||||
shelves = models.Shelf.objects.filter(user=self.user).all()
|
||||
self.assertEqual(len(shelves), 3)
|
||||
self.assertEqual(len(shelves), 4)
|
||||
names = [s.name for s in shelves]
|
||||
self.assertTrue("To Read" in names)
|
||||
self.assertTrue("Currently Reading" in names)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue