Mercurial > hg > orthanc-tests
comparison Tests/Tests.py @ 716:998f83ddd4de find-refactoring tip
fix ordering tests
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Tue, 08 Oct 2024 17:51:56 +0200 |
parents | c11496bd7eaa |
children |
comparison
equal
deleted
inserted
replaced
715:c11496bd7eaa | 716:998f83ddd4de |
---|---|
10983 }, | 10983 }, |
10984 | 10984 |
10985 'OrderBy' : [ | 10985 'OrderBy' : [ |
10986 { | 10986 { |
10987 'Type': 'DicomTag', | 10987 'Type': 'DicomTag', |
10988 'Key': 'BodyPartExamined', # in Knee but not in Brainix => Brainix is first because NULL is in front of other values | 10988 'Key': 'BodyPartExamined', # in Knee but not in Brainix => Brainix is last because NULL are pushed at the end |
10989 'Direction': 'ASC' | 10989 'Direction': 'ASC' |
10990 } | 10990 } |
10991 ] | 10991 ] |
10992 }) | 10992 }) |
10993 self.assertTrue(a[0] == brainixEpiSeriesId or a[0] == brainixFlairSeriesId) | 10993 self.assertTrue(a[0] == kneeT1SeriesId or a[0] == kneeT2SeriesId) |
10994 self.assertTrue(a[3] == kneeT1SeriesId or a[3] == kneeT2SeriesId) | 10994 self.assertTrue(a[3] == brainixEpiSeriesId or a[3] == brainixFlairSeriesId) |
10995 | 10995 |
10996 # order by metadata | 10996 # order by metadata |
10997 a = DoPost(_REMOTE, '/tools/find', { 'Level' : 'Series', | 10997 a = DoPost(_REMOTE, '/tools/find', { 'Level' : 'Series', |
10998 'Query' : { | 10998 'Query' : { |
10999 'SeriesDescription' : '*' | 10999 'SeriesDescription' : '*' |