changeset 841:f7bb0bf6fb50

fix
author Alain Mazy <am@orthanc.team>
date Thu, 10 Jul 2025 09:17:52 +0200
parents 97df5a151d44
children e9d04132a6bc 1d005fb79faa f190fe4f1c39
files Tests/Tests.py
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Wed Jul 09 12:30:56 2025 +0200
+++ b/Tests/Tests.py	Thu Jul 10 09:17:52 2025 +0200
@@ -12129,8 +12129,9 @@
 
 
     def test_encodings_iso_ir13(self):
-        # from https://discourse.orthanc-server.org/t/issue-with-special-characters-when-scans-where-uploaded-with-specificcharacterset-dicom-tag-value-as-iso-ir-13/5962
-        instanceId = UploadInstance(_REMOTE, 'Encodings/ISO_IR13.dcm')['ID']
-        tags = DoGet(_REMOTE, '/instances/%s/tags?simplify' % instanceId)
-        self.assertEqual('ORIGINAL\PRIMARY\M\NORM\DIS2D\FM\FIL', tags['ImageType'])
-
+        if IsOrthancVersionAbove(_REMOTE, 1, 12, 9):
+            # from https://discourse.orthanc-server.org/t/issue-with-special-characters-when-scans-where-uploaded-with-specificcharacterset-dicom-tag-value-as-iso-ir-13/5962
+            instanceId = UploadInstance(_REMOTE, 'Encodings/ISO_IR13.dcm')['ID']
+            tags = DoGet(_REMOTE, '/instances/%s/tags?simplify' % instanceId)
+            self.assertEqual('ORIGINAL\PRIMARY\M\NORM\DIS2D\FM\FIL', tags['ImageType'])
+