changeset 605:76e5f75249ca

fix
author Alain Mazy <am@osimis.io>
date Tue, 23 Jan 2024 10:21:30 +0100
parents 8fb9b5cd0f4f
children 0700fe8e2b78
files Tests/Tests.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Tue Jan 23 09:08:26 2024 +0100
+++ b/Tests/Tests.py	Tue Jan 23 10:21:30 2024 +0100
@@ -10103,7 +10103,7 @@
             self.assertEqual(0, len(modifiedStudy["Labels"]))
             self.assertEqual('modified', modifiedStudy["PatientMainDicomTags"]["PatientName"])
 
-        if IsOrthancVersionAbove(_REMOTE, 1, 12, 3) and DoGet(_REMOTE, '/system')['ApiVersion'] >= 23:
+        if IsOrthancVersionAbove(_REMOTE, 1, 12, 3) and DoGet(_REMOTE, '/system')['ApiVersion'] >= 23 and DoGet(_REMOTE, '/system')['HasLabels']:
             for testId in range(1, 2): #test with a single instance study and a multi instance study
 
                 originalPatient, originalStudy, originalSeries, originalInstance = UploadAndLabel(testId)