Mercurial > hg > orthanc-tests
comparison Tests/Tests.py @ 605:76e5f75249ca
fix
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 23 Jan 2024 10:21:30 +0100 |
parents | 8fb9b5cd0f4f |
children | 0700fe8e2b78 |
comparison
equal
deleted
inserted
replaced
604:8fb9b5cd0f4f | 605:76e5f75249ca |
---|---|
10101 # with no options, all resources lose their labels during the modification | 10101 # with no options, all resources lose their labels during the modification |
10102 modifiedStudy = DoGet(_REMOTE, '/studies/%s' % originalStudy['ID']) | 10102 modifiedStudy = DoGet(_REMOTE, '/studies/%s' % originalStudy['ID']) |
10103 self.assertEqual(0, len(modifiedStudy["Labels"])) | 10103 self.assertEqual(0, len(modifiedStudy["Labels"])) |
10104 self.assertEqual('modified', modifiedStudy["PatientMainDicomTags"]["PatientName"]) | 10104 self.assertEqual('modified', modifiedStudy["PatientMainDicomTags"]["PatientName"]) |
10105 | 10105 |
10106 if IsOrthancVersionAbove(_REMOTE, 1, 12, 3) and DoGet(_REMOTE, '/system')['ApiVersion'] >= 23: | 10106 if IsOrthancVersionAbove(_REMOTE, 1, 12, 3) and DoGet(_REMOTE, '/system')['ApiVersion'] >= 23 and DoGet(_REMOTE, '/system')['HasLabels']: |
10107 for testId in range(1, 2): #test with a single instance study and a multi instance study | 10107 for testId in range(1, 2): #test with a single instance study and a multi instance study |
10108 | 10108 |
10109 originalPatient, originalStudy, originalSeries, originalInstance = UploadAndLabel(testId) | 10109 originalPatient, originalStudy, originalSeries, originalInstance = UploadAndLabel(testId) |
10110 | 10110 |
10111 # modify a study in place with no label field in the payload (default behavior before 1.12.3) | 10111 # modify a study in place with no label field in the payload (default behavior before 1.12.3) |