def test_repo_list_unauth_302(self):
response = self.client.get(self.url)
self.assertEqual(response.status_code, 302)
# Disabled because the view requires OAuth with Github
# def test_repo_list_auth_200(self):
# self.client.force_login(self.user, backend=settings.AUTHENTICATION_BACKENDS[0])
# response = self.client.get(self.url)
# self.assertEqual(response.status_code, 200)
# self.assertContains(response, self.repo.full_name)
评论列表
文章目录