changeset 446:9184e6cb215a

allow custom value for "Modality" in /tools/create-dicom for PDF
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Feb 2022 21:08:05 +0100
parents 09ebdee8eda2
children 72be948dfe5c
files Tests/Tests.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Wed Feb 09 15:29:07 2022 +0100
+++ b/Tests/Tests.py	Wed Feb 09 21:08:05 2022 +0100
@@ -2745,7 +2745,9 @@
                    }))
 
         self.assertEqual('Jodogne', DoGet(_REMOTE, '/instances/%s/content/PatientName' % i['ID']).strip())
-        self.assertEqual('OT', DoGet(_REMOTE, '/instances/%s/content/Modality' % i['ID']).strip())
+        # In Orthanc <= 1.9.7, the "CT" would have been replaced by "OT"
+        # https://groups.google.com/g/orthanc-users/c/eNSddNrQDtM/m/wc1HahimAAAJ
+        self.assertEqual('CT', DoGet(_REMOTE, '/instances/%s/content/Modality' % i['ID']).strip())
 
         b = DoGet(_REMOTE, '/instances/%s/content/0042-0011' % i['ID'])
         self.assertEqual(len(b), len(pdf) + 1)