Mercurial > hg > orthanc-tests
comparison Tests/Tests.py @ 606:0700fe8e2b78
skip test
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 23 Jan 2024 12:22:07 +0100 |
parents | 76e5f75249ca |
children | 9c295b8dac00 |
comparison
equal
deleted
inserted
replaced
605:76e5f75249ca | 606:0700fe8e2b78 |
---|---|
10044 (headers, body) = DoGetRaw(_REMOTE, '/system') | 10044 (headers, body) = DoGetRaw(_REMOTE, '/system') |
10045 self.assertIn('nosniff', headers['x-content-type-options']) | 10045 self.assertIn('nosniff', headers['x-content-type-options']) |
10046 | 10046 |
10047 def test_modify_with_labels(self): | 10047 def test_modify_with_labels(self): |
10048 | 10048 |
10049 if DoGet(_REMOTE, '/system')['ApiVersion'] < 23 or not DoGet(_REMOTE, '/system')['HasLabels']: | |
10050 return | |
10051 | |
10049 def UploadAndLabel(testId): | 10052 def UploadAndLabel(testId): |
10050 DropOrthanc(_REMOTE) | 10053 DropOrthanc(_REMOTE) |
10051 | 10054 |
10052 u = UploadInstance(_REMOTE, 'Brainix/Epi/IM-0001-0001.dcm') | 10055 u = UploadInstance(_REMOTE, 'Brainix/Epi/IM-0001-0001.dcm') |
10053 studyId = u["ParentStudy"] | 10056 studyId = u["ParentStudy"] |