changeset 604:8fb9b5cd0f4f

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