def test_update_issues_operator_exist_jira(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, {'operator': 'normal_user'})
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    self.assertEqual(response.data['data']['operator'], 'normal_user')
def test_update_issues_operator_exist_jira(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, {'operator': 'normal_user'})
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    self.assertEqual(response.data['data']['operator'], 'normal_user')