Skip to content

Commit ade7f02

Browse files
committed
Added test to update case reviewer_id
1 parent fc49a2a commit ade7f02

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/tests_rest_cases.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,3 +222,9 @@ def test_update_case_should_allow_to_update_customer(self):
222222
customer_identifier = response['data']['customer_id']
223223
response = self._subject.update(f'/api/v2/cases/{identifier}', {'case_customer': customer_identifier}).json()
224224
self.assertEqual(customer_identifier, response['case_customer_id'])
225+
226+
def test_update_case_should_allow_to_update_reviewer(self):
227+
identifier = self._subject.create_dummy_case()
228+
user = self._subject.create_dummy_user()
229+
response = self._subject.update(f'/api/v2/cases/{identifier}', {'reviewer_id': user.get_identifier()}).json()
230+
self.assertEqual(user.get_identifier(), response['reviewer_id'])

0 commit comments

Comments
 (0)