changeset 716:998f83ddd4de find-refactoring

fix ordering tests
author Alain Mazy <am@orthanc.team>
date Tue, 08 Oct 2024 17:51:56 +0200
parents c11496bd7eaa
children f2d3d7c701ec
files Tests/Tests.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Tests.py	Mon Oct 07 18:20:59 2024 +0200
+++ b/Tests/Tests.py	Tue Oct 08 17:51:56 2024 +0200
@@ -10985,13 +10985,13 @@
                                                 'OrderBy' : [
                                                     {
                                                         'Type': 'DicomTag',
-                                                        'Key': 'BodyPartExamined',  # in Knee but not in Brainix  => Brainix is first because NULL is in front of other values
+                                                        'Key': 'BodyPartExamined',  # in Knee but not in Brainix  => Brainix is last because NULL are pushed at the end
                                                         'Direction': 'ASC'
                                                     }
                                                 ]
                                                 })
-            self.assertTrue(a[0] == brainixEpiSeriesId or a[0] == brainixFlairSeriesId)
-            self.assertTrue(a[3] == kneeT1SeriesId or a[3] == kneeT2SeriesId)
+            self.assertTrue(a[0] == kneeT1SeriesId or a[0] == kneeT2SeriesId)
+            self.assertTrue(a[3] == brainixEpiSeriesId or a[3] == brainixFlairSeriesId)
 
             # order by metadata
             a = DoPost(_REMOTE, '/tools/find', { 'Level' : 'Series',