diff --git a/test/tests/test_normal_user_view.py b/test/tests/test_normal_user_view.py index fb3506ace..e27c02276 100644 --- a/test/tests/test_normal_user_view.py +++ b/test/tests/test_normal_user_view.py @@ -40,7 +40,7 @@ def app_black_list(self): ''' 黑名单:部门一成员13899990006为黑名单人员,不可见应用十 ''' - user = User.objects.filter(username='13899990006') + user = User.objects.filter(username='13899990006').first() client = self.login_as(user) res = client.get(reverse('siteapi:ucenter_app_list')) self.assertEqual(res.json()['count'], 0)