From 5766dc6ac3a764ab1f389025d1bb8055838d20bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20Kj=C3=A6r=20S=C3=B8rensen?= <24767209+JayKayAce@users.noreply.github.com> Date: Sun, 14 Jul 2019 00:28:05 +0200 Subject: [PATCH] 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 --- tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests.py b/tests.py index 52111b1..72d1188 100755 --- a/tests.py +++ b/tests.py @@ -43,7 +43,7 @@ class UserModelCase(unittest.TestCase): db.session.add(u2) db.session.commit() self.assertEqual(u1.followed.all(), []) - self.assertEqual(u1.followers.all(), []) + self.assertEqual(u2.followers.all(), []) u1.follow(u2) db.session.commit()