Skip to content

Commit 6991a0b

Browse files
committed
[#678] Added test to update case owner
1 parent 4fdac4d commit 6991a0b

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
@@ -193,3 +193,9 @@ def test_update_case_should_allow_to_update_classification(self):
193193
identifier = self._subject.create_dummy_case()
194194
response = self._subject.update(f'/api/v2/cases/{identifier}', { 'classification_id': 3 }).json()
195195
self.assertEqual(3, response['classification_id'])
196+
197+
def test_update_case_should_allow_to_update_owner(self):
198+
user = self._subject.create_dummy_user()
199+
identifier = self._subject.create_dummy_case()
200+
response = self._subject.update(f'/api/v2/cases/{identifier}', { 'owner_id': user.get_identifier() }).json()
201+
self.assertEqual(user.get_identifier(), response['owner']['id'])

0 commit comments

Comments
 (0)