Test of u2 for empty followers table

Hello Miguel
I found that `u1` is tested twice for empty followers, and one of the tests should be changed to `u2`.
Assuming that the error is related to a copy/paste operation and persists from tag V0.8 until latest revision.

Thanks for a really nice tutorial.
Jesper
This commit is contained in:
Jesper Kjær Sørensen 2019-07-14 00:28:05 +02:00 committed by GitHub
parent 34c128eca2
commit 5766dc6ac3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class UserModelCase(unittest.TestCase):
db.session.add(u2) db.session.add(u2)
db.session.commit() db.session.commit()
self.assertEqual(u1.followed.all(), []) self.assertEqual(u1.followed.all(), [])
self.assertEqual(u1.followers.all(), []) self.assertEqual(u2.followers.all(), [])
u1.follow(u2) u1.follow(u2)
db.session.commit() db.session.commit()