Mercurial > hg > orthanc-tests
changeset 763:374dbe6651d4
"CaseSensitive" is not available in "/tools/count-resources
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 17 Dec 2024 15:37:07 +0100 |
parents | 3eef1a13ee9f |
children | 847b3c6b360b |
files | Tests/Tests.py |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Tests/Tests.py Tue Dec 17 15:17:19 2024 +0100 +++ b/Tests/Tests.py Tue Dec 17 15:37:07 2024 +0100 @@ -2113,7 +2113,7 @@ if IsOrthancVersionAbove(_REMOTE, 1, 12, 5): a = DoPost(_REMOTE, '/tools/count-resources', { 'Level' : 'Series', - 'CaseSensitive' : True, + 'CaseSensitive' : False, 'Query' : { 'StationName' : 'SMR4-MP3' }}) self.assertEqual(1, len(a)) self.assertEqual(1, a['Count']) @@ -2125,6 +2125,8 @@ self.assertEqual(expectedAnswers, len(a)) if IsOrthancVersionAbove(_REMOTE, 1, 12, 5) and executeCountResources: + if 'CaseSensitive' in query: + del query['CaseSensitive'] b = DoPost(_REMOTE, '/tools/count-resources', query) self.assertEqual(1, len(b)) self.assertEqual(expectedAnswers, b['Count']) @@ -2205,7 +2207,7 @@ query = { 'Level' : 'Patient', 'CaseSensitive' : True, 'Query' : { 'PatientName' : '*n*' }} - CheckFind(query, 0) + CheckFind(query, 0, False) # "CaseSensitive" is not available in "/tools/count-resources" query = { 'Expand' : True, 'Level' : 'Patient', @@ -2217,7 +2219,7 @@ query = { 'Level' : 'Patient', 'CaseSensitive' : True, 'Query' : { 'PatientName' : '*ne*' }} - CheckFind(query, 0) + CheckFind(query, 0, False) # "CaseSensitive" is not available in "/tools/count-resources" query = { 'Level' : 'Study', 'CaseSensitive' : True,