We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fdac4d commit 6991a0bCopy full SHA for 6991a0b
tests/tests_rest_cases.py
@@ -193,3 +193,9 @@ def test_update_case_should_allow_to_update_classification(self):
193
identifier = self._subject.create_dummy_case()
194
response = self._subject.update(f'/api/v2/cases/{identifier}', { 'classification_id': 3 }).json()
195
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