changeset 769:f3376bc9f514 default tip

prepared a test for OE2 issue #73
author Alain Mazy <am@orthanc.team>
date Thu, 26 Dec 2024 13:09:05 +0100
parents fc778968a82a
children
files Tests/Tests.py
diffstat 1 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Fri Dec 20 16:26:15 2024 +0100
+++ b/Tests/Tests.py	Thu Dec 26 13:09:05 2024 +0100
@@ -11526,6 +11526,28 @@
                                                     'Limit': 10
                                                     }))
 
+        # disabled while waiting for https://github.com/orthanc-server/orthanc-explorer-2/issues/73 to be fixed
+        # if IsOrthancVersionAbove(_REMOTE, 1, 12, 6) and HasExtendedFind(_REMOTE):
+        #     # make sur no error is returned when using Since or Limit when querying against ModalitiesInStudy
+        #     a = DoPost(_REMOTE, '/tools/find', {'Level' : 'Studies',
+        #                                         'Query' : { 
+        #                                             'ModalitiesInStudy' : 'CT\\MR'
+        #                                         },
+        #                                         'Since': 2,
+        #                                         'Limit': 3,
+        #                                         'Expand': True,
+        #                                         'OrderBy': [
+        #                                             {
+        #                                                 'Type': 'DicomTag',
+        #                                                 'Key': 'StudyDate',
+        #                                                 'Direction': 'ASC'
+        #                                             }                                                        
+        #                                         ]})
+        #     # pprint.pprint(a)
+        #     self.assertEqual('20050927', a[0]['MainDicomTags']['StudyDate'])
+        #     self.assertEqual('20061201', a[1]['MainDicomTags']['StudyDate'])
+        #     self.assertEqual('20070101', a[2]['MainDicomTags']['StudyDate'])
+
 
     def test_attachment_range(self):
         def TestData(path):