def test_issue_stats_report_source(self):
    self.client.force_authenticate(user=get_user_model().objects.get(username='app_owner_user'))
    url = reverse('issuestats')
    data = {'reportSource': '四大区运营'}
    response = self.client.get(url, data, format='json')
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    self.assertEqual(response.data['data']['totalIssues'], 9)
    self.assertEqual(response.data['data']['results']['statusStats']['closed'], 2)
def test_issue_stats_report_source(self):
    self.client.force_authenticate(user=get_user_model().objects.get(username='app_owner_user'))
    url = reverse('issuestats')
    data = {'reportSource': '四大区运营'}
    response = self.client.get(url, data, format='json')
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    self.assertEqual(response.data['data']['totalIssues'], 9)
    self.assertEqual(response.data['data']['results']['statusStats']['closed'], 2)