def test_update_issues_with_priority(self):
    self.client.force_authenticate(user=get_user_model().objects.get(username='app_owner_user'))
    url = reverse('issues-detail', kwargs={'pk': 1})
    response = self.client.patch(url, {'priority': '紧急'})
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    self.assertEqual(response.data['data']['priority'], '紧急')
    response = self.client.get(reverse('issues-list'), {'priority': '紧急', 'appId': 1})
    self.assertEqual(self._get_response_total(response), 1)
    response = self.client.get(reverse('issues-list'), {'priority': '不紧急', 'appId': 1})
    self.assertEqual(self._get_response_total(response), 1)
def test_update_issues_with_priority(self):
    self.client.force_authenticate(user=get_user_model().objects.get(username='app_owner_user'))
    url = reverse('issues-detail', kwargs={'pk': 1})
    response = self.client.patch(url, {'priority': '紧急'})
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    self.assertEqual(response.data['data']['priority'], '紧急')
    response = self.client.get(reverse('issues-list'), {'priority': '紧急', 'appId': 1})
    self.assertEqual(self._get_response_total(response), 1)
    response = self.client.get(reverse('issues-list'), {'priority': '不紧急', 'appId': 1})
    self.assertEqual(self._get_response_total(response), 1)