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 6991a0b commit 9d37922Copy full SHA for 9d37922
tests/tests_rest_cases.py
@@ -199,3 +199,8 @@ def test_update_case_should_allow_to_update_owner(self):
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'])
202
+
203
+ def test_update_case_should_allow_to_update_state(self):
204
+ identifier = self._subject.create_dummy_case()
205
+ response = self._subject.update(f'/api/v2/cases/{identifier}', { 'state_id': 2 }).json()
206
+ self.assertEqual(2, response['state']['state_id'])
0 commit comments