# HG changeset patch # User Alain Mazy # Date 1735214945 -3600 # Node ID f3376bc9f514530ab1554ddb682eba7d49e180c1 # Parent fc778968a82a1f0fb21b523834e883acb7e6acf0 prepared a test for OE2 issue 73 diff -r fc778968a82a -r f3376bc9f514 Tests/Tests.py --- 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):