Skip to content

Commit 4fdac4d

Browse files
committed
[#678] Added test to update case classification_id
1 parent 7d1c63d commit 4fdac4d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/tests_rest_cases.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,12 @@ def test_update_case_should_not_fail(self):
184184
response = self._subject.update(f'/api/v2/cases/{identifier}', { 'case_name': 'new name' })
185185
self.assertEqual(200, response.status_code)
186186

187-
def test_update_case_should_update_severity(self):
187+
def test_update_case_should_allow_to_update_severity(self):
188188
identifier = self._subject.create_dummy_case()
189189
response = self._subject.update(f'/api/v2/cases/{identifier}', { 'severity_id': 5 }).json()
190190
self.assertEqual(5, response['severity_id'])
191+
192+
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'])

0 commit comments

Comments
 (0)