Remove banned user homepage test
@@ -299,35 +299,3 @@ class BuildViewTests(TestCase):
)
self.assertEqual(response.status_code, 200)
self.assertIn(external_version_build, response.context['build_qs'])
-
-
-class HomepageViewTests(TestCase):
-
- def setUp(self):
- self.homepage_url = reverse('homepage')
-
- def test_projects_count(self):
- user_1 = get(User)
- profile_1 = get(UserProfile, user=user_1, banned=True)
-
- user_2 = get(User)
- profile_2 = get(UserProfile, user=user_2, banned=True)
-
- user_3 = get(User)
- profile_3 = get(UserProfile, user=user_3, banned=False)
-
- project_a = get(Project, users=[user_1])
- project_b = get(Project, users=[user_2])
- project_c = get(Project, users=[user_3])
-
- spam_proj_count = Project.objects.filter(users__profile__banned=True).count()
-
- self.assertEqual(spam_proj_count, 2)
- self.assertEqual(User.objects.all().count(), 3)
- self.assertEqual(User.objects.filter(profile__banned=True).count(), 2)
-
- expected_count = Project.objects.all().count() - spam_proj_count
- response = self.client.get(self.homepage_url)
-
- self.assertEqual(response.status_code, 200)
- self.assertEqual(expected_count, response.context['projects_count'])
