changeset 686:992f0e405c4f

fix
author Alain Mazy <am@orthanc.team>
date Mon, 09 Sep 2024 15:30:36 +0200
parents bd5dab887f34
children edf6ce075823
files Tests/Tests.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Mon Sep 09 15:15:22 2024 +0200
+++ b/Tests/Tests.py	Mon Sep 09 15:30:36 2024 +0200
@@ -1915,9 +1915,10 @@
         self.assertEqual('Jodogne', DoGet(_REMOTE, '/instances/%s/content/PatientName' % i['ID']).strip())
         self.assertEqual('CT', DoGet(_REMOTE, '/instances/%s/content/Modality' % i['ID']).strip())
         tags = DoGet(_REMOTE, '/instances/%s/tags?simplify' % i['ID'])
-        self.assertIn("3.12", tags["TimeRange"])
-        self.assertIn("4.12", tags["TimeRange"])
-        self.assertIn("\\", tags["TimeRange"])
+        if IsOrthancVersionAbove(_REMOTE, 1, 12, 5):
+            self.assertIn("3.12", tags["TimeRange"])
+            self.assertIn("4.12", tags["TimeRange"])
+            self.assertIn("\\", tags["TimeRange"])
 
         png = GetImage(_REMOTE, '/instances/%s/preview' % i['ID'])
         self.assertEqual((5, 5), png.size)