Skip to content

Commit 9d37922

Browse files
committed
[#678] Added test to update case state
1 parent 6991a0b commit 9d37922

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/tests_rest_cases.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,8 @@ def test_update_case_should_allow_to_update_owner(self):
199199
identifier = self._subject.create_dummy_case()
200200
response = self._subject.update(f'/api/v2/cases/{identifier}', { 'owner_id': user.get_identifier() }).json()
201201
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

Comments
 (0)